cancel
Showing results for 
Search instead for 
Did you mean: 

How does one activate the window before the use of global send key events

Anonymous
Not applicable
I tried using the 'Activate Window' action before using the 'Global Send Key events'. However, this did not activate the relevant window/tab/screen on the internet explorer (IE)(version 11). Then I tried using the 'Resize' action. This made the relevant window active and then I was able to use the 'Global Send Key events'. However, I did not face this problem with Version 8 of internet explorer. The Activate action worked fine. !--break--I tried another workaround to activate the window/tab when using IE V11 to write to certain fields of the active application using 'Global send key'. I used a Write stage to input the values to the rest of the fields that accepted inputs with a Write stage. Then I tried using the global send key events (for a few of the fields that did not accept input from a write stage) assuming that the window/tab would be active. But this did not work. I had to use a 'resize ' window explicitly to activate the application. !--break--Any tips on this and also an explanation of this behavior will be very helpful.
5 REPLIES 5

shahariar_k_bhu
Level 5
First, you will have to spy the relevant window on Internet Explorer using Win32 spy mode. Then use ""Activate Application"" on that element. Second, as as far as I understand, the window cannot be minimized when using ""Activate Application"". I have not encountered any problems activating Internet Explorer, so the behaviour sounds strange.

Hi, Shabhu I have the similar problem with activation of IE. I'm running two instances of the IE and the Activate function of attached IE doesn't work at all. Did you solve that? Thank you

manivannan_r
Level 3
Hi Vladimir, You then try detaching the current window then attach the next window with its window title(*Wildcard*) and then use the same element which you have used for spying the window and then try activating it will work.

Anonymous
Not applicable
For multiple iexlore instances please refer to Browser Automation Guide section 2.2 TabProcGrowth

Denis__Dennehy
Level 15
Also.... as well as the advise already given, don't forget to put a tiny wait (maybe 0.25 seconds) after your activate action - just to give the applictation time to become focused before your flow continues. Without your tiny waits your interface is unlikely to work at full speed in control room.