How to loop entire Script
Thanks for any advice on this.
I am trying to make a simple auto click script that I would like to repeat until I stop with Hotkeys.
This is my first try at any kind of scripting. I have no prior knowledge on scripts or python. I have though looked at all of the FAQs on here looking for looping solutions. I tried a few but cant seem to get any to work. I also saw something that I should create a function and then loop the function. See my code below:
I would like this to run infinite until I stop
running = True
def runHotkey(event):
global running
running = False
Env.addHotkey(
click(Location(
click(Location(
wait(1)
click(Location(
click(Location(
click(Location(
click(Location(
click(Location(
click(Location(
click(Location(
click(Location(
wait(1)
click(Location(
click(Location(
click(Location(
click(Location(
click(Location(
click(Location(
wait(300)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: