How to uniquely identify or distinguish windows that have no window name, same class name and resource id is zero [modified]
-
Dear all, I have an application that can identify a window. The method in which I worked out is given below. I will store the attributes of the window such as( class name, window caption, resource id etc..) to a file. When the second time , window is up, using the above attributes, I will identify the window. But, I encounter a problem with the above scenario. The problem comes, when the 'window does not have window caption', 'window class name is same' and 'control id is zero'.. I can't use window handle, bcz it will differ when the window is up for the second time. Is there any method to solve this problem? OR Is there any unique attribute to identify the window? Please help, Thanks in advance, George K J
modified on Monday, September 22, 2008 4:22 AM
-
Dear all, I have an application that can identify a window. The method in which I worked out is given below. I will store the attributes of the window such as( class name, window caption, resource id etc..) to a file. When the second time , window is up, using the above attributes, I will identify the window. But, I encounter a problem with the above scenario. The problem comes, when the 'window does not have window caption', 'window class name is same' and 'control id is zero'.. I can't use window handle, bcz it will differ when the window is up for the second time. Is there any method to solve this problem? OR Is there any unique attribute to identify the window? Please help, Thanks in advance, George K J
modified on Monday, September 22, 2008 4:22 AM
IMHO there is a logical pitfall in your requirements: processes and executable files are different things. For instance you may have three different instances of
your_application.exe
running at the same time, the system allows you to differenziate between these three processes, but such a distinction makes sense only at runtime. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]