Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FindWindow IN User32
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00429868
Message ID:
00429869
Views:
14
>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?
>
>Thank you for your help in advance!

Use my Is_Run32() function. It's available in the Files Section under Win32 and Other APIs ("Is a Windows Application Running" is the title I think). It will return the window handle of the window based on the known portion of the title bar (the more the better, of course), and is not case sensitive.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform