Jump to content

sehedule autoit script with Windows scheduler


Recommended Posts

Hi all,

I am new to autoIt. I created a simple autoIt that opens an excel, wait few mins and send couple of enter keys to it. The script is working fine when I double click on it.. But when I put it in a windows scheduler, it never finish.

in the scheduled job, I entered my login and password. The path of the excel is D drive (local drive).

the script is like this...

unWait(@comspec & ' /c "D:\scripts\test.xls"','',@sw_hide)

Sleep(60000)

Send("{Enter}")

Sleep(60000)

Send("{Enter}")

Sleep(100000)

RunWait(@comspec & ' /c "D:\scripts\test2.xls"','',@sw_hide)

thanks alot...

Lewis

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