← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #404536]: Use variables in type()

 

Question #404536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404536

Description changed to:
I want to navigate through around 300 folders named 1,2,3 ... 300

My code is as follows:

for i in range(1,300):
    click("1480530304554.png") # Click on a Button
    wait("1480531095180.png") # Wait for prompt window
    eval(type("cd D:\ISB\Pairs\"+str(i)+"\Acq\" +Key.ENTER)) # Enter path

This doesnt work. I'm getting `SyntaxError ( "no viable alternative at
input 'cq'", )`

How should I use the looping variable in type()

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.