Created
February 6, 2023 08:19
-
-
Save fokklz/7251db5f347aec7e1e745a2366b31ecd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keyboard | |
import time | |
import pydirectinput | |
time.sleep(6) | |
print('Gooo!') | |
pydirectinput.keyDown('w') | |
pydirectinput.keyDown('shift') | |
while True: | |
if keyboard.is_pressed('q'): # if key 'q' is pressed | |
pydirectinput.keyUp('w') | |
pydirectinput.keyUp('shift') | |
break # finishing the loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment