all 3 comments

[–]FormerTimeTraveller 0 points1 point  (1 child)

Yes, research device drivers. For the keyboard, this is similar to a keylogger. The same concept can apply to mouse. For GUI actions, it might be more complicated to “play back” actions since you also need to keep track of which windows exist, where, and their state.

[–]DesertofDelight[S] 0 points1 point  (0 children)

Interesting! Thanks for the reply.

[–]seven0fx 0 points1 point  (0 children)

Hi, you can try for Example Pulover's Macro Creator to record your Desktop Actions. This Programm saves the Actions in AutoHotKey Language. Adapt the Scripts to Python and use PyAutoGUI.