Package org.sikuli.natives
Class WinUtil
- java.lang.Object
-
- org.sikuli.natives.WinUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWinUtil.ProcessInfostatic classWinUtil.WindowInfo
-
Constructor Summary
Constructors Constructor Description WinUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<WinUtil.ProcessInfo>allProcesses()static List<WinUtil.WindowInfo>allWindows()voidcheckFeatureAvailability()check if needed command libraries or packages are installed and working
if not ok, respective features will do nothing but issue error messagesbooleanclose(App app)Appget(App app)List<App>getApps(String name)static StringgetEnv(String envKey)RectanglegetFocusedWindow()static StringgetTopWindowTitle(int pid)RectanglegetWindow(String title)RectanglegetWindow(App app)RectanglegetWindow(App app, int winNum)List<Region>getWindows(App app)static StringgetWindowTitle(com.sun.jna.platform.win32.WinDef.HWND hWnd)static intisCapsLockOn()static intisNumLockOn()static intisScrollLockOn()booleanopen(App app)static StringsetEnv(String envKey, String envVal)Appswitchto(String title, int index)booleanswitchto(App app)
-
-
-
Method Detail
-
checkFeatureAvailability
public void checkFeatureAvailability()
Description copied from interface:OSUtilcheck if needed command libraries or packages are installed and working
if not ok, respective features will do nothing but issue error messages- Specified by:
checkFeatureAvailabilityin interfaceOSUtil
-
getFocusedWindow
public Rectangle getFocusedWindow()
- Specified by:
getFocusedWindowin interfaceOSUtil
-
getWindows
public List<Region> getWindows(App app)
- Specified by:
getWindowsin interfaceOSUtil
-
allProcesses
public static List<WinUtil.ProcessInfo> allProcesses()
-
allWindows
public static List<WinUtil.WindowInfo> allWindows()
-
getWindowTitle
public static String getWindowTitle(com.sun.jna.platform.win32.WinDef.HWND hWnd)
-
getTopWindowTitle
public static String getTopWindowTitle(int pid)
-
isNumLockOn
public static int isNumLockOn()
-
isScrollLockOn
public static int isScrollLockOn()
-
isCapsLockOn
public static int isCapsLockOn()
-
-