Class Env

java.lang.Object
org.sikuli.script.Env

public class Env
extends Object
features moved to other classes, details below with the methods
  • Constructor Details

    • Env

      public Env()
  • Method Details

    • getSikuliDataPath

      @Deprecated public static String getSikuliDataPath()
      Deprecated.
      use Settings.getDataPath() instead
      Returns:
      where we store Sikuli specific data
    • getSikuliVersion

      @Deprecated public static String getSikuliVersion()
      Deprecated.
      use Settings.getVersion() instead
      Returns:
      version
    • getSikuliVersionBuild

      @Deprecated public static 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 String getOSVersion()
      Deprecated.
      use Settings. ... instead
      Returns:
      version (java: os.version)
    • getOS

      @Deprecated public static 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 String getSeparator()
      Deprecated.
      use Settings.getPathSeparator() ... instead
      Returns:
      path seperator : or ;
    • getClipboard

      @Deprecated public static String getClipboard()
      Deprecated.
      use App. ... instead
      Returns:
      content
    • setClipboard

      @Deprecated public static void setClipboard​(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​(String key, int modifiers, 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, 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​(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