Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SendKey
Message
De
12/07/2006 14:21:25
 
 
À
12/07/2006 13:08:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
01135717
Message ID:
01135810
Vues:
17
Thanks very much Christian,
Great class !

I have only one doubt:

When I use the function SendKeyCombi,
FUNCTION SendKeyCombi
	LPARAMETERS lnModifier, lcText
	LOCAL lnAscii
	IF BITTEST(lnModifier,0)
		keybd_event(VK_SHIFT,0,KEYEVENT_KEYDN,0)
	ENDIF
	IF BITTEST(lnModifier,1)
		keybd_event(VK_CTRL,0,KEYEVENT_KEYDN,0)
	ENDIF
	IF BITTEST(lnModifier,2)
		keybd_event(VK_ALT,0,KEYEVENT_KEYDN,0)
	ENDIF
and send VK_ALT as the first parameter, the class is understanding that "CTRL" was sent instead of "ALT" key...

Maybe there's something wrong with the "BITTEST" statements ?

Is there a specific way to send {ENTER} and {TAB} ? I used 13 and 9 as parameters and it works perfectly.

Anyway, thank you very much that has already solved my problem.

Best Regards

Cesar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform