For extra background info, read this::
CookieRevised's reply to # key and = key
And:
http://msdn.microsoft.com/library/default.asp?url=/library/.../VirtualKeyCodes.asp
http://msdn.microsoft.com/library/default.asp?url=/library/.../wm_appcommand.asp
http://www.microsoft.com/mspress/books/sampchap/6232.asp#120
http://www.microsoft.com/whdc/device/input/w2kbd.mspx#EATAE
Finally, what you need depends on what your programming language returns or can detect, or what your destination app may detect. You have ascii codes, scan codes, key codes and virtual key codes.
This said, when you need to send something like that you do not send a keystroke (eg: <CTRL> <K>; thus 2 codes) but you send the code which makes up that keystroke (eg: <CTRL+K>; thus 1 code). The same goes for that
Fn Key. You don't send the code for that, but you send the code of the F4 when
Fn is pressed.
So sending
0xFF|0x73 doesn't make much sense (also '255 OR 115' will be 255 anyways). You need to send the keycode of the key F4 when the
Fn key is on.
I attached a very crude virtual keycode scanner which I just slammed together. Launch it, toggle your
Fn and press F4 and see what the keycode is
(requires VB6 runtimes).
---------------
quote:
Originally posted by Dan0208
code:
SendVirtualKeystroke( 0xFF|0x73, true, false, false, false );
can anyone that knows Jscript actually confirm its the right code.
No, as that code is not part of JScript, but it is part of the scripting engine of salling clicker (just as the Interop stuff is part of Plus!'s addition to the JScript engine in Plus!Live).
quote:
Originally posted by Dan0208
....im just not sure what all the true, falses are for.
Isn't that also in the documentation?
Either way, there is the forum for that, search and you'll find (in fact their forum is full of threads with questions like yours)
eg:
http://www.salling.com/forums/viewtopic.php?t=404...ndvirtualkeystroke
http://www.salling.com/forums/viewtopic.php?t=304...ndvirtualkeystroke
quote:
SendVirtualKeystroke(
virtual keycode value,
shiftState,
ctrlState,
altState,
winState
);
PS: in the SVKS app the 'shift state' indicates the state of the shift keys. these are Shift, Ctrl and ALT. So don't confuse 'shift state' with the 'shiftState' of the SendVirtualKeystroke function where they actually mean the SHIFT button itself.