Jump to content

Autoit Scheduler alternatives


MrJones
 Share

Recommended Posts

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

  • Developers

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

  • Moderators

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?

"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

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

  • Developers

Mouseclicks and send will not work in a background session and you will have to use controlxxx functions.

Jos

Edited by 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

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

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...