Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SendInput Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00814808
Message ID:
00814854
Vues:
53
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform