← Back to team overview

sikuli-driver team mailing list archive

[Question #256328]: While with rules

 

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

Hello. 
Help a newbie please with loop script.

I write ordinary words, and I need converting this to code of the sikuli script:

myApp = App("Application")

if not myApp.window(): 
        popup("Application is not running" , "Attention!")

then, i need get popup with input value of random - entered value is assigned to random
random.randint(entered value in popup)
t = random.randint

myApp.focus()
start while
    
    wait(t)
    click(img)
    sleep(1)
    click(img)
        if img is not exist return to start while
        if img is exist continue
sleep(1)
    click(img)
        if img is not exist return to start while
        if img is exist continue

delete all files from folder C:\0000\ by quiet cmd or something else
return to start while

if press TAB + Esc - > stop script

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.