Constructor and Description |
---|
Win32Util() |
Modifier and Type | Method and Description |
---|---|
protected Region |
_getWindow(long hwnd,
int winNum) |
void |
bringWindowToFront(java.awt.Window win,
boolean ignoreMouse) |
int |
closeApp(int pid) |
int |
closeApp(java.lang.String appName) |
static java.awt.Rectangle |
getFocusedRegion() |
Region |
getFocusedWindow() |
static long |
getHwnd(int pid,
int winNum) |
static long |
getHwnd(java.lang.String appName,
int winNum) |
static java.awt.Rectangle |
getRegion(long hwnd,
int winNum) |
Region |
getWindow(int pid) |
Region |
getWindow(int pid,
int winNum) |
Region |
getWindow(java.lang.String appName) |
Region |
getWindow(java.lang.String appName,
int winNum) |
int |
openApp(java.lang.String appName) |
void |
setWindowOpacity(java.awt.Window win,
float alpha) |
void |
setWindowOpaque(java.awt.Window win,
boolean opaque) |
int |
switchApp(int pid,
int num) |
int |
switchApp(java.lang.String appName) |
int |
switchApp(java.lang.String appName,
int num) |
public int switchApp(java.lang.String appName)
public int switchApp(java.lang.String appName, int num)
public Region getWindow(java.lang.String appName)
public Region getWindow(java.lang.String appName, int winNum)
protected Region _getWindow(long hwnd, int winNum)
public Region getFocusedWindow()
getFocusedWindow
in interface OSUtil
public void bringWindowToFront(java.awt.Window win, boolean ignoreMouse)
bringWindowToFront
in interface OSUtil
public static long getHwnd(java.lang.String appName, int winNum)
public static long getHwnd(int pid, int winNum)
public static java.awt.Rectangle getRegion(long hwnd, int winNum)
public static java.awt.Rectangle getFocusedRegion()
public void setWindowOpacity(java.awt.Window win, float alpha)
setWindowOpacity
in interface OSUtil
public void setWindowOpaque(java.awt.Window win, boolean opaque)
setWindowOpaque
in interface OSUtil