I need to send a key down / key up event for number keys to an application using AppleScript. However, the commands:
key down "6"
delay 1
key up "6"
send the keystrokes as if they were coming from the number pad. I need them to be interpreted as coming from the number row at the top of the keyboard.
I’ve also tried using (ASCII character 54)
instead of a literal, without success.
Note I need key down to be sent – sending a keystroke
or key code
will not do.