|
-
Jan 26th, 2000, 05:12 AM
#1
I know that I can use FindWindow to determine the hwnd of an application that has a fixed window name, but what API would I use to determine the hwnd of an app like FreeCell which changes the game number in its window from, for example, "FreeCell Game #1234" to FreeCell Game #3451" depending on the game being played?
------------------
Marty
Why is it called lipstick if you can still move your lips?
-
Jan 26th, 2000, 05:26 AM
#2
Marty, why not to search the class name of that window, instead of a caption?
But if you still need to find the window by it's caption then you can use EnumWindows API to loop through all open windows and then use InStr function to find out if the FreeCell is present.
------------------
Serge
Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|