Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass String Data Between App Using SendMessage
Message
De
21/07/2000 07:46:02
 
 
À
21/07/2000 07:27:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00395247
Message ID:
00395307
Vues:
10
>A VFP Application has to send a string to a non-VFP Application, i try it now with WM_KEYDOWN / WM_KEYUP...

If you're going to send it as a string as keystrokes, rather than sending keystroke by keystroke, why not just fill the clipboard with the string and send a Ctrl-V to get the other app to paste the content of the clipboard? Either that, or look into using the Wscript.Shell's AppActivate and SendKeys methods to do this.

You definitely want to use PostMessage() rather than SendMessage() here since you don't need to wait for responses to each individual message if you use windows messages. I think it'd be a tremendous mistake to take this approach unless you have a way of guarenteeing the focus of the other app on the proper control to deal with the content, but that's just my opinion.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform