how do i get my script to repeat

Asked by Eric Hendrix

actually i have two questions and as i am a beginner i dont understand much if any of the programming code.
i am writing a script for a game and want my script to repeat itself every 45 mins or so but have no clue how to do this.
the second question is after i finish designing my script is how do i make it executable? i know i can save it but where do i go from there?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

general information on looping/repeating: faq 1437

*** your special challenge

waitTime = 45 * 60.0 # time in seconds
while True:
    # here goes your current stuff
    wait(waitTime)

Revision history for this message
RaiMan (raimund-hocke) said :
#2

There is no real executable (as a beginner, you should just forget this), it is only a zipped .sikuli folder.

If you are ready with your script and do not want to run it in the IDE anymore, you might run it from a command line using Sikuli-IDE-w.bat (no extra command line window, no print output visible) or Sikuli-IDE.bat (see http://sikuli.org/docx/faq/010-command-line.html)

Can you help with this problem?

Provide an answer of your own, or ask Eric Hendrix for more information if necessary.

To post a message you must log in.