I'm creating a macro to temporarely auto-connect to a open wlan. All is well until the dialogbox wher you can cancel or - as I will - Connect Anyway. I've tried many things, some I have found on this forum, but I can not get this button clicked. The dialogbox has the same name as the underlying window...
Hope someone can help me with this.....
Can't get focus on dialogbox (windows wlan)
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
How are you clicking on the button? Personally I try not to actually CLICK on it, but to send the shortcut key for it.
There are ways to deal with the fact that dialog box has the same name as the main window title. If you know when the dialog is about to appear you can use WaitWindowChanged to wait for it to appear no matter the title. Or sometimes a simple Wait> is good enough.
If you DON'T know when the dialog will appear but want to respond to it when it does you can use OnEvent. This may help:
http://www.mjtnet.com/blog/2008/03/04/o ... e-dialogs/
Feel free to post your code so that we can help further.
There are ways to deal with the fact that dialog box has the same name as the main window title. If you know when the dialog is about to appear you can use WaitWindowChanged to wait for it to appear no matter the title. Or sometimes a simple Wait> is good enough.
If you DON'T know when the dialog will appear but want to respond to it when it does you can use OnEvent. This may help:
http://www.mjtnet.com/blog/2008/03/04/o ... e-dialogs/
Feel free to post your code so that we can help further.
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?