Indeed! In some spare time, I’ll replay some of them on my phone using ScummVM. Day of the Tentacle is the current one
Declare Function CGPostKeyboardEvent Lib "ApplicationServices" (keyChar as Short, virtualKey as Short, keyDown as boolean) as Integer
Dim result As Integer
result = CGPostKeyboardEvent(keyChar, virtualKey, keyDown)
PostKeyboardEvent(0, 76, true) // for pressing....
PostKeyboardEvent(0, 76, false) // and releasing the key
If i unterstand your question right, this “press” the enter key on the num of your keyboard. So you can simulate every key (MAC OS X).
This should belong here, even if it’s only indirectly related. I found it interesting and have used it a couple of times.