Python Alt Hooking
问题 I was writing this type-recording program when I encountered a problem - Alt key doesn't have an Ascii number so I can't hook it in the regular way. This is my source code without the Alt hooking try, the question is - how do I hook Alt ? I know that there is Class variable named "Alt" and built-in function named "IsAlt" but I didn't get how to use them. import pythoncom,pyHook log = "" logpath = "log.txt" openfile = open(logpath,"w") openfile.write("") def OnKeyboardEvent(event): try: global