Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control a non-VFP form from VFP
Message
From
07/11/2002 17:26:21
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00719792
Message ID:
00720057
Views:
9
Thank you, Ed. I should have considered WSH to begin with. Thanks for setting me straight.

>>I'd like to send a carriage return to another application's pop-up window from VFP.
>> (snip)

>If you have the hWnd of the other form, you can direct a keystroke to it using the SendMessage() API call, discussed in the API section here on UT.
>
>If you know the Window title, or a part of it, for the other app's pop-up window, it's really trivial to do using the Wscript.Shell's AppActivate() and SendKeys() methods:
>
>
oShell = CREATEOBJ('Wscript.Shell')
>oShell.AppActivate("The popup menu title")
>oShell.SendKeys('{Enter}')
>oShell = NULL
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.
Previous
Reply
Map
View

Click here to load this message in the networking platform