Jump to content

Trying to focus (activate) an IE window.


sdfg4545
 Share

Recommended Posts

I am trying to open and setfocus on an IE window.

The window opens as expected and has focus for a brief instant, then loses focus.

And the loss of focus happens only sometimes, occasionally focus remains on the window as desired.

; open IE, works fine

$oIE = _IECreate("https://ssl.accesstocare.on.ca/")

; These will not consistently set focus to the window:

;WinActivate($oIE)

;_IELoadWait ($oIE)

;WinMove($CONST_BetterAccessToCareWIE, "", 11, 10, 800, 700)

;WinActivate("Better Access To Care - Microsoft Internet Explorer")

;WinWaitActive("Better Access To Care - Microsoft Internet Explorer", "", $CONST_TIMEOUT)

IS it possible that focus is shifting back to my SciTE editor window when next line of code is run?

Link to comment
Share on other sites

i think that you cant do WinActivate($oIE) becose _IECreate dont return anything from Title special definition. And youl need loadwait before winactivate

#include <IE.au3>

$oIE = _IECreate("https://ssl.accesstocare.on.ca/")

_IELoadWait ($oIE)

WinActivate("Better Access To Care")

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...