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 11:29:29
 
 
À
05/12/2005 11:04:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows 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:
01074962
Vues:
12
Any idea why the below code returns "Function name missing )."
#DEFINE VK_LWIN  0x5B           && 0x5B and 91 both do not work
#DEFINE VK_RWIN  0x5C
#DEFINE KEYEVENTF_KEYUP    0x2

DECLARE keybd_event IN Win32API ;
  SHORT bVk, SHORT bScan, INTEGER dwFlags, INTEGER deExtraInfo
=keybd_event(VK_LWIN,0,0,0)
=keybd_event(VK_LWIN,0,KEYEVENTF_KEYUP,0)

CLEAR DLLS keybd_event
RETURN
>Hello,
>
>yes you're on the right track.
>
>you've got these #DEFINES from a VB page right?
>
>in VB H is the prefix for hexadecimal, just replace it with 0x to convert to VFP.
>
>e.g.
>H5B -> 0x5B
>
>Regards
>Christian
.·*´¨)
.·`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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform