Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Press windows key twice from within VFP using API?
Message
De
05/12/2005 10:30:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Press windows key twice from within VFP using API?
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01074949
Message ID:
01074949
Vues:
52
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"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform