sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40064
[Question #389068]: Running script from command line with parameter
New question #389068 on Sikuli:
https://answers.launchpad.net/sikuli/+question/389068
I have a script that automates application installation. When my script contains a hard-coded fileName, it works without problem. However, when I made my script accepts argument, it fails as App.focus is on the cmd.exe. I also noticed this problem when I try SikuliSharp to call my scripts. Is there any work-around for this? below is part of my script.
import sys
name = "absetup.exe" // this works
name = sys.argv[1] // this didn't
s = Screen()
app = App(name)
if not app.window():
app.open(5)
wait(10)
app.focus()
.. other instructions here...
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.