For testing functions, I must ship keystrokes to my iPad. Utilizing Common management, I’m able to press a key with my keyboard linked to my mac and it’ll register on the iPad. Nevertheless utilizing an automation device like osascript
to press the important thing doesn’t register on the ipad. In case anybody is , here is the command I am utilizing:
def press_key(key):
cmd = "osascript -e 'inform software "System Occasions" to keystroke "" + key + ""'"
os.system(cmd)
Any assistance is appreciated!
Leave a Comment