I would like to send keys to the system to press the windows keys twice from within VFP. This should be able to be done using something similiar to:
DEFINE VK_LWIN = 0
DEFINE KEYEVENTF_KEYUP = 2097152
DECLARE keybd_event IN Win32API ;
SHORT bVk, SHORT bScan, INTEGER dwFlags, INTEGER deExtraInfo
keybd_event(VK_LWIN,0,KEYEVENTF_KEYUP,0)
keybd_event(VK_LWIN,0,KEYEVENTF_KEYUP,0)
Has anyone done this before? Am I on the right track? I know VK_LWIN should be H5B (well, I'm pretty sure anyway).
TIA,
Tracy
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"