Le 9 janv. 2015 à 10:17, Jean-Luc Arnaud <jean-...@cdmultimedia.fr> a écrit:

> Hi all,
> 
> Using MBS class RemoteControlMBS and MacPressKey or WinPressKey, I would 
> like to send a "F8" key to the frontmost application.
> 
> I just have a problem: what code should I use in the PressKey functions, 
> given that they need an Integer parameter and that I don't know what's 
> the value for F8?

Hello,

The F8 key has the key number 100 (perhaps they chose F8 because its key code 
is round? :-P). You're lucky here, because F8 won't change among keyboard 
layouts.
Perhaps I'm wrong (because Christian told otherwise in the meantime (I saw he 
also responded while I was writing my message)), but in a Virtual Machine 
(Win7), F8 is also 100 (is that a mapping of Parallels Desktop?). I don't have 
a real PC to try on.

Also, I bet you already know (but better to say it twice), that's the KeyCode, 
not the CharCode.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to