Package org.sikuli.natives
Class MacUtil
- java.lang.Object
-
- org.sikuli.natives.MacUtil
-
-
Constructor Summary
Constructors Constructor Description MacUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 RectanglegetFocusedRegion()RectanglegetFocusedWindow()static intgetPID(String appName)static RectanglegetRegion(int pid, int winNum)RectanglegetWindow(String appName)RectanglegetWindow(App app)RectanglegetWindow(App app, int winNum)List<Region>getWindows(App app)booleanopen(App app)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
-
getPID
public static int getPID(String appName)
-
getRegion
public static Rectangle getRegion(int pid, int winNum)
-
getFocusedRegion
public static Rectangle getFocusedRegion()
-
-