We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1657d71 commit 6de8a38Copy full SHA for 6de8a38
awake.pyw
@@ -19,7 +19,7 @@ def thread_toggle_scrolllock():
19
"""handles launching of a second thread"""
20
logging.debug("2nd Thread Start")
21
pyautogui.FAILSAFE = False # fixes thread dying when cursor corner of screen
22
- while getattr(threading.currentThread(), "do_run", True):
+ while getattr(threading.current_thread(), "do_run", True):
23
for _ in range(0, 2): #always do it twice, so scrollock returns to original state
24
press('scrolllock')
25
time.sleep(0.4) ##400ms
0 commit comments