![]() I tried to check the module files but I fail to understand most of it. The keyboard.hook(events.append) line in the code above throws an error: As both modules were made by the same people, I assumed that the same would work with the keyboard module. Mouse.unhook(events.append) #Stopping the mouse recording Keyboard.wait("a") #Waiting for 'a' to be pressed Mouse.hook(events.append) #starting the mouse recording In an earlier question, I asked how to record the mouse movement until a key is pressed, and I got the following code: import mouseĮvents = #This is the list where all the events will be stored I think that this can be achieved with the keyboard and mouse modules. I want to create a function that records both mouse and keyboard events until a specific key is pressed and then replays them together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |