Processing the child window when it pops up

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
jiby
Junior Coder
Posts: 30
Joined: Fri Feb 26, 2010 12:26 pm

Processing the child window when it pops up

Post by jiby » Wed Sep 22, 2010 1:56 pm

Hi,

I am trying to install one application. In the middle of installation, an confirmation window pops up. In that pop up window I have to click 'yes'. And then the installation window continues.

Now, I am doing it in this way.
1. Start the installation and wait for 3 minutes(within this time, the popup would be displayed and waiting for user inputs)
2. Search for window that has text 'yes'. Focus on that window and pushbutton 'yes'

I want to know a method by which I can detect whenever window pops up, and click 'yes'(avoiding the waiting time).

CAUTION: The title of popup window is not same always.

Thanks in advance.

--jiby

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Sep 22, 2010 2:19 pm

Use OnEvent with a WINDOW_OPEN event handler. In the event handler subroutine search the active window for the Yes button .....
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

jiby
Junior Coder
Posts: 30
Joined: Fri Feb 26, 2010 12:26 pm

Post by jiby » Wed Sep 22, 2010 5:03 pm

Can you please provide a link containing an example.

Thanks
jiby

User avatar
Esabik
Pro Scripter
Posts: 52
Joined: Wed Jun 15, 2005 8:03 pm
Location: Fairfield, NJ

Re:

Post by Esabik » Tue Oct 10, 2017 2:17 pm

Marcus Tettmar wrote:Use OnEvent with a WINDOW_OPEN event handler. In the event handler subroutine search the active window for the Yes button .....
Good info Marcus have a similar scenario and this is what I needed.
Thanks :mrgreen:
Just when you thought it was safe to go in the water........:evil:

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts