Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Minimize Window API Function?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00203054
Message ID:
00203157
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform