← Back to team overview

sikuli-driver team mailing list archive

[Question #670590]: Looping with incremental number in type filed

 

New question #670590 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670590

Hi,

I am very new to sikuli. Need your help. I prepared image clicking like the below code. I am trying to click on few buttons where it will open a print page and I will be giving the number as save page number to save the document (by giving in type field). I would like to repeat the same activity for 200 pages in the e-book. How should I implement the incremental number in the type ("pagenumber"+KEy.ENTER)? or any other code?

How to make the below statement's to loop for  200 times by increasing the input value in one of the screen ( type in the below code).

    click("1530447294924.png")
    wait ("1530447325206.png")
    click ("1530447343712.png")
    wait ("1530447376641.png")
    type ("1"+Key.ENTER)
    wait ("1530447934594.png")
    click ("1530447952404.png")
    wait (1)
    click ("1530448147670.png")
    wait (1) 

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