sdfg4545 Posted November 25, 2009 Posted November 25, 2009 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?
bogQ Posted November 25, 2009 Posted November 25, 2009 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 connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now