MrJones Posted September 19, 2014 Share Posted September 19, 2014 I have a script oriented by mouseclick, mouse position, and Send(). It works fine with in my "Menu Bat System". But now I want to run my autoIt script every morning. I tested "Taskschd.msc" but I lose focus and apparently I need to use Controlsend. How can I do this without having to change my script? $oIE = _IECreate () _IEAction($oIE, "focus") WinSetState(_IEPropertyGet($oIE, "hwnd"), "", @SW_MAXIMIZE) Send(.....) MouseClick(.....) ..... Link to comment Share on other sites More sharing options...
Developers Jos Posted September 19, 2014 Developers Share Posted September 19, 2014 You can't. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Jewtus Posted September 19, 2014 Share Posted September 19, 2014 If you run it every morning, why don't you compile the autoit script and use windows task scheduler to execute it? Link to comment Share on other sites More sharing options...
Developers Jos Posted September 19, 2014 Developers Share Posted September 19, 2014 If you run it every morning, why don't you compile the autoit script and use windows task scheduler to execute it?think you missed the essense of the question, Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted September 19, 2014 Moderators Share Posted September 19, 2014 How about explaining more about what you're trying to do (what page are you opening, what controls are you clicking on, etc.) and why you feel mouseclicks and sends are the only way to go? Jewtus 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Jewtus Posted September 19, 2014 Share Posted September 19, 2014 think you missed the essense of the question, Jos If you dont want to change the script, and you are able to execute it without issue now, I'm not sure why compiling and saving it in windows task scheduler to execute at a specific time would not work.... And to JLogans point, you might want to provide a little more detail so we can provide better ideas... Link to comment Share on other sites More sharing options...
Developers Jos Posted September 19, 2014 Developers Share Posted September 19, 2014 (edited) Mouseclicks and send will not work in a background session and you will have to use controlxxx functions. Jos Edited September 19, 2014 by Jos Jewtus 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MrJones Posted September 19, 2014 Author Share Posted September 19, 2014 Thanks for you fast reply guys. Actually I have a secure page that I need a certificate to enter (windows security confirm certificate). When I try to enter in this page using AutoIt I lose IE control, even when I disable this certificate popup adding the page as trust. $oIE = _IECreate () _IEAction($oIE, "focus") _IENavigate ($oIE, $myPage) _IELoadWait($oIE) IELoadWait() don't work. I tried my script in a regular page and it works fine. As a workaround, I started to use mouse click, "Ctrl + F" Tabs and Enters to navegate in the page. Does AutoIt have a solution to work with pages that uses certificate? Link to comment Share on other sites More sharing options...
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