hi there!
Is it possible to recognize a window without the title or koordinates?
If it is... how?
window recognizeing
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
Not sure what you mean? What do you actually want to do? Without a name the window would be pretty difficult to 'recognise' or distinguish.
If you just want to wait for the active window to change that is easily achieved with a loop and GetActiveWindow, or the new WaitWindowChanged command.
Not sure what you mean? What do you actually want to do? Without a name the window would be pretty difficult to 'recognise' or distinguish.
If you just want to wait for the active window to change that is easily achieved with a loop and GetActiveWindow, or the new WaitWindowChanged command.
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?
I'm using the setfocus command, to make sure i'm sending some commands to a IE window.
But sometime when the site loads, the title of the window change to "page not found", and I get the message "could'nt setfocus on 'window'" and the macro stops... Is it possible to ignore that warning?, or is there a smarter method?
But sometime when the site loads, the title of the window change to "page not found", and I get the message "could'nt setfocus on 'window'" and the macro stops... Is it possible to ignore that warning?, or is there a smarter method?
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Use:
SetFocus>Internet Explorer*
Internet Explorer may change it's title, but it always has the words 'Internet Explorer' in it.
See the help explanation for the wildcard.
SetFocus>Internet Explorer*
Internet Explorer may change it's title, but it always has the words 'Internet Explorer' in it.
See the help explanation for the wildcard.
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?
Hi,
if a popup appears the IEWindow should loose the focus (it's title bar color will change).
With a periodical check [GetPixelColor] you should be able to track that.
and/or
with [GetActiveWindow] you'll (hopefully) get the popup title, which you'll use to [CloseWindow] ...
Sample:
and/or
Just an idea ...
Ciao
Ernest
if a popup appears the IEWindow should loose the focus (it's title bar color will change).
With a periodical check [GetPixelColor] you should be able to track that.
and/or
with [GetActiveWindow] you'll (hopefully) get the popup title, which you'll use to [CloseWindow] ...
Sample:
Code: Select all
Label>ActiveWindowCheck
GetPixelColor>X,Y,IETitleBarColor
//8388608 = darkblue title bar - windows standard scheme
If>IETitleBarColor<>8388608, LetsCheckTheWindow
Wait>3
Goto>ActiveWindowCheck
Code: Select all
Label>LetsCheckTheWindow
GetActiveWindow>window_title,X,Y
If>window_title<>TheTitleYouExpect, LetsCloseAWindow
Goto>LetsCheckTheWindow
Label>LetsCloseAWindow
CloseWindow>window_title
Ciao
Ernest