Anybody used WinPressKey before? I’m trying to send the number “0” to a textbox (in my own app “self.handle”) and can’t get it to work. I don’t see any examples on the Monkeybread site or here.

You didn’t specify which OS you were trying to do this on, and posted in the General forum. But if you are trying to do this in a recent macOS version, Apple restrictions block doing this unless the user has granted permission to “control your computer” in the os System Preferences > Security & Privacy > Privacy > Accessibility section.

Sorry, I’m on Windows. I think I figured out the syntax now I just need to find out what the code is for “0”.

call RemoteControlMBS.WinPressKey(&h2E) // this types a “c”

1 Like