← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #258380]: Any way to restart Sikuli script execution?

 

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

shelby proposed the following answer:
Edit: 
Sleep(5000)
While True
     If WinActive("[CLASS:SunAwtFrame]") Then ; Check if Notepad is currently active.
          ;Sikuli is Active (error)
           Sleep(2000)
          Send("^r")
          Sleep(2000)
      Else
          ;Sikuli is Inactive & Running script
          ContinueLoop
      EndIf
      Sleep(5000)
WEnd

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