i have a application that creates several windows and when one of them requieres a action the application put the windows in top of all but it is not activated, i.e. the windows is at foreground but is not activated (not receive the focus). For that reaseon i cannot use "WaitWindowChanged"or "OnEvent>WINDOW_NEWACTIVE".
Is there any way to detect this?
Thanks by advance.
windows at foreground but not focused
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7391
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
WaitScreenImage
WaitScreenText
WaitPixelColor
GetActiveWindow (? not sure if that will work in this case)
LibFunc with Win32 API GetForeGroundWindow ?
..
WaitScreenText
WaitPixelColor
GetActiveWindow (? not sure if that will work in this case)
LibFunc with Win32 API GetForeGroundWindow ?
..
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
WiatScreenText-> They are flash windows and it does not workmtettmar wrote:WaitScreenImage
WaitScreenText
WaitPixelColor
GetActiveWindow (? not sure if that will work in this case)
LibFunc with Win32 API GetForeGroundWindow ?
..
WatiPixelColor -> All windows are same so i could not identify the windows go to foreground.
GetActiveWindows -> The window is in foreground but it is NOT ACTIVATED. ( i already tried it)
LibFunc with Win32 API GetForeGroundWindow --> I will try.
Thanks.
- Marcus Tettmar
- Site Admin
- Posts: 7391
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
So these two windows are 100% identical? Really? How do YOU know which one to click on. Surely if one is not active it must be greyed out somewhere or there must be *some* kind of visual cue, otherwise how does a mere human know which one to click on. If there's a visual cue you can surely use WaitScreenImage or WaitPixelColor.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?