sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07184
[Question #179786]: Pass an argument to a sikuli script
New question #179786 on Sikuli:
https://answers.launchpad.net/sikuli/+question/179786
Hi all,
I want to know how pass arguments to a sikuli script from batch file, can help any sample would be highly appreciated
The example .bat:
Sikuli-IDE.bat -r "C:\Files\ScriptsWindows\Co-Branded_Uninstall.skl" -args "Fujitsu"
******************************************************************************
Script piece:
I used "brand" word as a variable.
How must I use sys.argv here??? instead of brand word???
if brand== "Fujitsu" :
msg= "Fujitsu\\InfinityApp"
if brand== "Knowhow" :
msg= "KNOWHOW\\KNOWHOWAPPCENTRE"
openApp("C:\\Program Files\\"+msg +"\\run_uninstaller.exe")
********************************************************************************
Please help me!!!
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.