Waiting for image, type command, then waits again
I am looking for a simple script that will watch for an image, type the letter c until the image is gone. then wait for the image to come back again indefinitely.
I have looked at many videos and tutorials and they all have huge amounts of code that all differ from each other.
Settings.
running = True
def runHotkey(event):
global running
running = False
Env.addHotkey(
#for step in range(5): #for i in range(0,40):
hover("
for i in range(0,40):
while exists(
click(
if exists(
if exists(
if exists(
This kinda works but there has to be a much better way. Also the script wont end right away when I try to stop it. It lags for more than 3 mins before stopping.
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: