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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to