Package org.sikuli.script
Class Env
- java.lang.Object
-
- org.sikuli.script.Env
-
public class Env extends java.lang.Object
features moved to other classes, details below with the methods
-
-
Constructor Summary
Constructors Constructor Description Env()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
addHotkey(char key, int modifiers, org.sikuli.basics.HotkeyListener listener)
Deprecated.use Key.static boolean
addHotkey(java.lang.String key, int modifiers, org.sikuli.basics.HotkeyListener listener)
Deprecated.use Key.static java.lang.String
getClipboard()
Deprecated.use App.static int
getHotkeyModifier()
Deprecated.use Key.static Location
getMouseLocation()
Deprecated.useMouse.at()
insteadstatic org.sikuli.basics.OS
getOS()
Deprecated.use the Settings featuresstatic java.lang.String
getOSVersion()
Deprecated.use Settings.static java.lang.String
getSeparator()
Deprecated.use Settings.getPathSeparator() ...static java.lang.String
getSikuliDataPath()
Deprecated.use Settings.getDataPath() insteadstatic java.lang.String
getSikuliVersion()
Deprecated.use Settings.getVersion() insteadstatic java.lang.String
getSikuliVersionBuild()
Deprecated.use Settings.getVersionBuild() insteadstatic boolean
isLinux()
Deprecated.use Settings.static boolean
isLockOn(char key)
Deprecated.use Key.static boolean
isMac()
Deprecated.use Settings.static boolean
isWindows()
Deprecated.use Settings.static boolean
removeHotkey(char key, int modifiers)
Deprecated.use Key.static boolean
removeHotkey(java.lang.String key, int modifiers)
Deprecated.use Key.static void
setClipboard(java.lang.String text)
Deprecated.use App.
-
-
-
Method Detail
-
getSikuliDataPath
@Deprecated public static java.lang.String getSikuliDataPath()
Deprecated.use Settings.getDataPath() instead- Returns:
- where we store Sikuli specific data
-
getSikuliVersion
@Deprecated public static java.lang.String getSikuliVersion()
Deprecated.use Settings.getVersion() instead- Returns:
- version
-
getSikuliVersionBuild
@Deprecated public static java.lang.String getSikuliVersionBuild()
Deprecated.use Settings.getVersionBuild() instead- Returns:
- version incl. build info
-
getMouseLocation
@Deprecated public static Location getMouseLocation()
Deprecated.useMouse.at()
instead- Returns:
- current Location
-
getOSVersion
@Deprecated public static java.lang.String getOSVersion()
Deprecated.use Settings. ... instead- Returns:
- version (java: os.version)
-
getOS
@Deprecated public static org.sikuli.basics.OS getOS()
Deprecated.use the Settings featuresuse Settings.isWindows .isMac .isLinux instead- Returns:
- the OS.XXX
-
isWindows
@Deprecated public static boolean isWindows()
Deprecated.use Settings. ... instead- Returns:
- true/false
-
isLinux
@Deprecated public static boolean isLinux()
Deprecated.use Settings. ... instead- Returns:
- true/false
-
isMac
@Deprecated public static boolean isMac()
Deprecated.use Settings. ... instead- Returns:
- true/false
-
getSeparator
@Deprecated public static java.lang.String getSeparator()
Deprecated.use Settings.getPathSeparator() ... instead- Returns:
- path seperator : or ;
-
getClipboard
@Deprecated public static java.lang.String getClipboard()
Deprecated.use App. ... instead- Returns:
- content
-
setClipboard
@Deprecated public static void setClipboard(java.lang.String text)
Deprecated.use App. ... insteadset content- Parameters:
text
- text
-
isLockOn
@Deprecated public static boolean isLockOn(char key)
Deprecated.use Key. ... insteadget the lock state of the given key- Parameters:
key
- respective key specifier according class Key- Returns:
- true/false
-
getHotkeyModifier
@Deprecated public static int getHotkeyModifier()
Deprecated.use Key. ... instead- Returns:
- System dependent key
-
addHotkey
@Deprecated public static boolean addHotkey(java.lang.String key, int modifiers, org.sikuli.basics.HotkeyListener listener)
Deprecated.use Key. ... instead- Parameters:
key
- respective key specifier according class Keymodifiers
- respective key specifier according class KeyModifierslistener
- a HotKeyListener instance- Returns:
- true if ok, false otherwise
-
addHotkey
@Deprecated public static boolean addHotkey(char key, int modifiers, org.sikuli.basics.HotkeyListener listener)
Deprecated.use Key. ... instead- Parameters:
key
- respective key specifier according class Keymodifiers
- respective key specifier according class KeyModifierslistener
- a HotKeyListener instance- Returns:
- true if ok, false otherwise
-
removeHotkey
@Deprecated public static boolean removeHotkey(java.lang.String key, int modifiers)
Deprecated.use Key. ... instead- Parameters:
key
- respective key specifier according class Keymodifiers
- respective key specifier according class KeyModifiers- Returns:
- true if ok, false otherwise
-
removeHotkey
@Deprecated public static boolean removeHotkey(char key, int modifiers)
Deprecated.use Key. ... instead- Parameters:
key
- respective key specifier according class Keymodifiers
- respective key specifier according class KeyModifiers- Returns:
- true if ok, false otherwise
-
-