Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Minimize Window API Function?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00203054
Message ID:
00203157
Vues:
18
Hi John,

>George, on a side note, do you know the api code for doing sendkeys from within VFP?

The following code would open the File menu and choose the print option of the aplication that lnHWND points to.
#DEFINE WM_SYSCHAR		262
#DEFINE WM_CHAR				258
#DEFINE ALT_KEY				BitSet(0,29)
Declare Integer PostMessage in Win32API ;
	Long nHWND, ;
	Long nMessage, ;
	Long wParam, ;
	Long lParam
PostMessage( ;
	m.lnHWND, ;
	WM_SYSCHAR, ;
	Asc("f"), ;
	ALT_KEY ;
)
PostMessage( ;
	m.lnHWND, ;
	WM_CHAR, ;
	Asc("p"), ;
	0;
)
Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform