Sign in to follow this  
Followers 0
lewisY

sehedule autoit script with Windows scheduler

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Check the Task log to see if it tells you any specific information. Did you only add your task manually?

Share this post


Link to post
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
Sign in to follow this  
Followers 0