My script make a while True: begin with the F4 pressed, but I want it to stop when the F2 is pressed, how can I do it?
I'm trying this (using pyhook) but doesn't work...
def onKeyboardEvent(event):
if event.KeyID == 115: #F4
while True:
selectAndCopy(468,722)
getClipboard()
time.sleep(2)
if event.KeyID == 113:
break
return True