Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SendInput Function
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00814808
Message ID:
00814854
Views:
52
Brent,

You can use WSH
oShell = Createobject("wscript.shell")
oShell.AppActivate("...")
oShell.SendKeys("...")
For the list of keys see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthsendkeys.asp.

>I am having FoxPro (version 7) create an Internet Explorer com object and web sight connection. When the connection is made a login screen comes up requesting a user name and password. Because I can't see the underlying HTML code for this pop-up screen, I can't get the I.E. object text box names to send the user name and password to. Therefore, I must use the Win32API SendInput function to simulate keystrokes in the pop-up window. However, from the “West-Winds” Internet site Rick Strahl correctly informed me that, “You can't send FoxPro arrays to API functions as they are not in the right format.” He suggested I use the STRUCT class developed by Christof Lange to handle the sending of complex structures to Windows API’s. However, every time I use that class I get a return code of zero. I retrieved extended error information about the return code which says, “The parameter is incorrect.”
<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform