Does anyone know if it is possible to have a Python script running in the background that can enter keyboard input into the app in the foreground. Maybe a python library that someone knows about. I’m wanting to fake my Mac’s keyboard input in order to automate a very specific task.
Share
It’s probably easiest (but non-portable – this would be mac only) to use appscript. That is, of course, assuming that either the app you want to control supports applescript, or you have another tool which can type/click that can be controlled via applescript (ala Quickeys).