Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FindWindow IN User32
Message
De
16/10/2000 20:04:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00429868
Message ID:
00430110
Vues:
12
>Hello,
>
>I want to find a window that contains a text string.
>I tried to use FindWindow in User32.dll, but the problem is, that I don't know the complete string, only the first part of it.
>FindWindow however needs the full name of the complete window caption.
>
>Which function can I use to find a window having only a part (the beginning of the text like "Inbox -" for example) of the text string?
>

THe easiest way may be to use the Wscript.Shell AppActivate mechanism, if bringing the Window to foreground and setting focus to it is your desired effect; this can be used in conjunction with the WSH's SendKeys method to send keystrokes to the targeted Window. See the article George Tasker and I wrote on the Wscript.Shell object for the October issue of the VFUG newsletter; www.vfug.org, or try any of the WSH sites from my sig block.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform