yucatan Posted May 29, 2010 Share Posted May 29, 2010 Hello guys. I'm trying to detect a window dat comes up with a popup to login. its just a windows application. i am able to detect the mother windows on class. is there a way to detect if the windows comes up with the popup for the login. without useing the windows name? i already know the login windows size is smaller maby i can use that? plz advice me Greetz Yucatan Link to comment Share on other sites More sharing options...
Fainth Posted May 29, 2010 Share Posted May 29, 2010 can you see any text in the window? Link to comment Share on other sites More sharing options...
yucatan Posted May 29, 2010 Author Share Posted May 29, 2010 can you see any text in the window?yeah but i dont wanne trust on that tobecause the application can be installed in many langwiches Link to comment Share on other sites More sharing options...
niubbone Posted May 29, 2010 Share Posted May 29, 2010 yeah but i dont wanne trust on that tobecause the application can be installed in many langwichesMaybe it's a gross method, but if you really don't want to use windows handles reading, a PixelSearch or PixelGetColor should do for you. That way you won't need any windows handles. Link to comment Share on other sites More sharing options...
yucatan Posted May 30, 2010 Author Share Posted May 30, 2010 Maybe it's a gross method, but if you really don't want to use windows handles reading, a PixelSearch or PixelGetColor should do for you. That way you won't need any windows handles.its not that i dont wanne use windows handles reading. i dont wanne use the title. because that is different because u can install it in many langwiches.if possible i wanne use a windows handle.the problem is that the main window is coming with a popup thats the login screen.i wanne detect when that login screen comes up.i dont wanne use windows title for that because thats not possible.somebody any advice?greetzYucatan Link to comment Share on other sites More sharing options...
Makaule Posted May 30, 2010 Share Posted May 30, 2010 Dont know would it work, but try to use Window Class name. Link to comment Share on other sites More sharing options...
Tvern Posted May 30, 2010 Share Posted May 30, 2010 If you can't see something that will serve as a fairly secure way to identify the window you might be able to combine some methods. Lets say you detect a window of the right class opening, but you're not sure if it's the window you want. You could then count the amount and type of controls in that window to see if it matched. For instance your usual login window would have 2 inputs for the username and password and 2 buttons for login and cancel. You could also run the window title through a list of possible titles based on languages. This would be easiest if the program uses localisation files you can read. There might still be a better way though. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now