Class 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.
      use Mouse.at() instead
      static org.sikuli.basics.OS getOS()
      Deprecated.
      use the Settings features
      static 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() instead
      static java.lang.String getSikuliVersion()
      Deprecated.
      use Settings.getVersion() instead
      static java.lang.String getSikuliVersionBuild()
      Deprecated.
      use Settings.getVersionBuild() instead
      static 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Env

        public Env()
    • 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.
        use Mouse.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 features
        use 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. ... instead
        set content
        Parameters:
        text - text
      • isLockOn

        @Deprecated
        public static boolean isLockOn​(char key)
        Deprecated.
        use Key. ... instead
        get 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 Key
        modifiers - respective key specifier according class KeyModifiers
        listener - 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 Key
        modifiers - respective key specifier according class KeyModifiers
        listener - 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 Key
        modifiers - 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 Key
        modifiers - respective key specifier according class KeyModifiers
        Returns:
        true if ok, false otherwise