|
-
August 5th, 2010, 09:58 AM
#1
window handlers
Hi,
I have created an application that can capture the window handle "hwnd" using mouse pointer,but the problem is if i open word i receive a handle,then if i close word and open it again i receive a different handle.My problem is am trying to find something fix that will tell me it is word other than the window title,i need to always know that my mouse pointer is on this application if if i closed it and opened it again.To be more precise how to distinguish a window from another.
Any help would be appreciated.
Last edited by snow_cap; August 5th, 2010 at 10:05 AM.
-
August 5th, 2010, 11:41 AM
#2
Re: window handlers
Check the TITLE of the window
-
August 6th, 2010, 02:12 AM
#3
Re: window handlers
In your own words, you are saying that you need to find the handle of a window, without using it's text. Well, if GetWindowText already works, why do you need another way? It is quite reliable, isn't it?
If you really want a different way, have you heard of a program called Spy++? It may be useful, it may not be useful, but try it at least. I still can't see your reasoning behind this though
-
August 6th, 2010, 11:17 AM
#4
Re: window handlers
thx guys,but the handle is not helpful because it changes when you close or open the application.And for the title,in some application titles change.i tried the spy software and it wasn't much of help.
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
|