Package org.sikuli.natives
Class WinUtil
java.lang.Object
org.sikuli.natives.WinUtil
- All Implemented Interfaces:
OSUtil
public class WinUtil extends Object implements OSUtil
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWinUtil.ProcessInfostatic classWinUtil.WindowInfo -
Constructor Summary
Constructors Constructor Description WinUtil() -
Method Summary
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)
-
Constructor Details
-
WinUtil
public WinUtil()
-
-
Method Details
-
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
-
get
-
getApps
-
open
-
switchto
-
switchto
-
close
-
getWindow
-
getWindow
-
getWindow
-
getFocusedWindow
- Specified by:
getFocusedWindowin interfaceOSUtil
-
getWindows
- Specified by:
getWindowsin interfaceOSUtil
-
allProcesses
-
allWindows
-
getWindowTitle
-
getTopWindowTitle
-
isNumLockOn
public static int isNumLockOn() -
isScrollLockOn
public static int isScrollLockOn() -
isCapsLockOn
public static int isCapsLockOn() -
getEnv
-
setEnv
-