13 lines
No EOL
226 B
Python
13 lines
No EOL
226 B
Python
import time
|
|
|
|
import pydirectinput
|
|
|
|
import config
|
|
|
|
pydirectinput.PAUSE = 0
|
|
|
|
|
|
def press_action_key():
|
|
pydirectinput.keyDown(config.ACTION_KEY)
|
|
time.sleep(config.KEY_PRESS_DELAY)
|
|
pydirectinput.keyUp(config.ACTION_KEY) |