sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #06059
Re: [Question #174015]: [error] Error message: SyntaxError:
Question #174015 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/174015
Status: Needs information => Open
Tony gave more information on the question:
[error] Error message: SyntaxError: ("no viable alternative at character
'?'", ('', 1, 64, "if len(sys.argv)==0 or 'C:/Documents and
Settings/Tony's Backup/??/Backup.sikuli/' != sys.argv[0]:
sys.argv.insert(0, 'C:/Documents and Settings/Tony's
Backup/??/Backup.sikuli/')\n"))
Tried again by cut and pasting the script, but still won't work. Does
the script have to be used on the same computer as it was written?
#1st level loop for entire script n for Number of Loops (level 1)
for n in range(1):
#Starting up Firefox (1001)
switchApp("C:\\Program Files\\Mozilla Firefox\\firefox.exe")#start firefox
sleep(2)
#2nd level loop for number of alts (level 2)
for n in range(1):
try: #try so that it may fail and move onto to next alt (level 3)
#Start galaxyonline and activate FULL screen Loop (level 4) (1002)
if exists("Englishso.png",2):
click("Englishso.png",2)
while True:
if exists("Dashboard.png",30):
sleep(5)
click("Enter Quest Page.png",2)
click("1318405695250.png",2)
click("1318405774875.png",2)
break
else:
click("Englishso.png")
#Warehouse Harvest (level 4)(1003)
if exists("I51QW.png",10):
click("I51QW.png",2)
click("Harvest.png",2)
else:
pass
if exists("1318411049140.png",10):
click("1318411049140.png",2)
click("Harvest.png",2)
else:
pass
#Hire Commanders Uncommons Only (level 4) (1004)
click("Millitary Menu.png",2)
click("Commander Menu.png",2)
click("1318408178953.png",2)
if exists("ll.png",5):
click("ll.png",2)
else:
click("1318409705375.png",2)
#CIB Harvest and Resources
#Opening Alts (level 4)
for n in range(0):
type("m", KeyModifier.CTRL+KeyModifier.SHIFT)
pass
#end of script in case it fails (level 3)
except:
continue
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.