Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WScript.Shell SendKeys to close a DOS window
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00474022
Message ID:
00474216
Vues:
20
Maybe I'm outta my league here, but couldn't you do this instead?
oShell.sendkeys(chr(13))
Since it needs a string and "^C" might been seen as two characters instead of the escape code.


>>From MSDN: The SendKeys syntax is
>> WshShell.SendKeys (bstrKeys As String, [pvarWait])
>>
>>Tried this, too.
>>
>>oSHell.sendkeys("^C")
>>oSHell.sendkeys("^C",.f.)
>
>I meant parenthesis, sorry. Some keycodes don't work from within Fox. In this case, you'd need to use either the SendMessage() or PostMessage() API calls to send the appropriate keycodes to the window.

- Erik Niese-Petersen

Crazy Dane in USA.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform