Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Press windows key twice from within VFP using API?
Message
From
05/12/2005 10:30:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Press windows key twice from within VFP using API?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074949
Message ID:
01074949
Views:
51
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                 && H5B ?  
DEFINE KEYEVENTF_KEYUP =  2097152  && H2

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"
Next
Reply
Map
View

Click here to load this message in the networking platform