Beispiel #1
0
def exit(code=0):
    global remoteScreen
    if remoteScreen:
      remoteScreen.close()
      remoteScreen = None
    Sikulix.cleanUp(code)
    sys.exit(code)
Beispiel #2
0
def popat(*args):
  if len(args) == 0:
    return Sikulix.popat()
  elif len(args) > 1:
    return Sikulix.popat(args[0], args[1])
  else:
    return Sikulix.popat(args[0])
Beispiel #3
0
def popat(*args):
    if len(args) == 0:
        return Sikulix.popat()
    elif len(args) > 1:
        return Sikulix.popat(args[0], args[1])
    else:
        return Sikulix.popat(args[0])
Beispiel #4
0
def exit(code=0):
    global remoteScreen
    if remoteScreen:
        remoteScreen.close()
        remoteScreen = None
    Sikulix.cleanUp(code)
    sys.exit(code)
Beispiel #5
0
def vncStart(ip="127.0.0.1",
             port=5900,
             connectionTimeout=10,
             timeout=1000,
             password=None):
    theVNCScreen = Sikulix.vncStart(ip, port, password, connectionTimeout,
                                    timeout)
    if theVNCScreen:
        return theVNCScreen
    exit(-1)
Beispiel #6
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    if len(options) == 0:
        return ""
    if default:
        if not __builtin__.type(default) is types.StringType:
            try:
                default = options[default]
            except:
                default = None
    return Sikulix.popSelect(msg, title, options, default)
Beispiel #7
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    if len(options) == 0:
        return ""
    if default:
        if not __builtin__.type(default) is types.StringType:
            try:
                default = options[default]
            except:
                default = None
    return Sikulix.popSelect(msg, title, options, default)
Beispiel #8
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    optionsLen = len(options)
    if optionsLen == 0:
        return ""
    try:
        default = 0 + default
        if default > -1 and default < optionsLen:
            default = options[default]
        else:
            default = None
    except:
        pass
    return Sikulix.popSelect(msg, title, options, default)
Beispiel #9
0
def select(msg="", title="Sikuli Selection", options=(), default=None):
    optionsLen = len(options)
    if optionsLen == 0:
        return ""
    try:
        default = 0 + default
        if default > -1 and default < optionsLen:
            default = options[default]
        else:
            default = None
    except:
        pass
    return Sikulix.popSelect(msg, title, options, default)
Beispiel #10
0
def run(cmd):
    return Sikulix.run(cmd)
Beispiel #11
0
def vncStart(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000, password=None):
  return Sikulix.vncStart(ip, port, password, connectionTimeout, timeout)
Beispiel #12
0
def inputText(msg="", title="", lines=0, width=0, text=""):
    return Sikulix.inputText(msg, title, lines, width, text)
Beispiel #13
0
def input(msg="", default="", title="Sikuli Input", hidden=False):
    Debug.log(3, "Sikuli.py: input")
    if hidden:
        default = ""
    return Sikulix.input(msg, default, title, hidden)
def vncStart(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000, password=None):
  return Sikulix.vncStart(ip, port, password, connectionTimeout, timeout)
Beispiel #15
0
def inputText(msg="", title="Sikuli Text", lines=0, width=0):
    return Sikulix.inputText(msg, title, width, lines)
Beispiel #16
0
def popFile(title = "Select File or Folder"):
  return Sikulix.popFile(title)
Beispiel #17
0
def popAsk(msg, title="Sikuli Decision"):
    return Sikulix.popAsk(msg, title)
Beispiel #18
0
def inputText(msg="", title="", lines=0, width=0, text=""):
    return Sikulix.inputText(msg, title, lines, width, text)
Beispiel #19
0
def popFile(title="Select File or Folder"):
    return Sikulix.popFile(title)
Beispiel #20
0
def inputText(msg="", title="", lines=0, width=0):
    return Sikulix.input(msg, title, width, lines)
Beispiel #21
0
def vncStart(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000):
  return Sikulix.vncStart(ip, port, connectionTimeout, timeout)
Beispiel #22
0
def vncStart(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000):
    return Sikulix.vncStart(ip, port, connectionTimeout, timeout)
Beispiel #23
0
def popup(msg, title="Sikuli Info"):
    Sikulix.popup(msg, title)
Beispiel #24
0
def useVnc(ip="127.0.0.1", port=5900, connectionTimeout=10, timeout=1000, password=None):
  use(Sikulix.vncStart(ip, port, password, connectionTimeout, timeout), True)
Beispiel #25
0
def popError(msg, title="Sikuli Error"):
    Sikulix.popError(msg, title)
Beispiel #26
0
def input(msg="", default="", title="Sikuli Input", hidden=False):
    if (hidden):
      default = ""
    return Sikulix.input(msg, default, title, hidden)
Beispiel #27
0
def input(msg="", default="", title="Sikuli Input", hidden=False):
    if (hidden):
        default = ""
    return Sikulix.input(msg, default, title, hidden)
def input(msg="", default="", title="Sikuli Input", hidden=False):
  Debug.log(3, "Sikuli.py: input")
  if (hidden):
    default = ""
  return Sikulix.input(msg, default, title, hidden)
Beispiel #29
0
def popup(msg, title="Sikuli Info"):
    Sikulix.popup(msg, title)
Beispiel #30
0
def popError(msg, title="Sikuli Error"):
    Sikulix.popError(msg, title)
Beispiel #31
0
def useVnc(ip="127.0.0.1",
           port=5900,
           connectionTimeout=10,
           timeout=1000,
           password=None):
    use(Sikulix.vncStart(ip, port, password, connectionTimeout, timeout), True)
Beispiel #32
0
def popAsk(msg, title="Sikuli Decision"):
    return Sikulix.popAsk(msg, title)
Beispiel #33
0
def run(cmd):
    return Sikulix.run(cmd)
Beispiel #34
0
def popat(*args):
    if len(args) == 0:
        Sikulix.popat()
    else:
        Sikulix.popat(args[0])