Macbook OpenEmu Python send keystrokes
问题 I am really impressed by this MarlIO project and want to implement something similar using Python. However, I got the emulator OpenEmu working, however, I don't know how to control the game using Python. Isn't it just a matter of sending a few keystrokes?! Man, it is not that straightforward on a Mac. In [41]: cmd1 Out[41]: '\nosascript -e \'tell application "System Events" to key code 48 using {command down}\' \n' In [42]: cmd2 Out[42]: '\nosascript -e \'tell application "System Events" to