lewisY Posted April 20, 2011 Share Posted April 20, 2011 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 More sharing options...
Tripredacus Posted April 20, 2011 Share Posted April 20, 2011 Check the Task log to see if it tells you any specific information. Did you only add your task manually? Twitter | MSFN | VGCollect Link to comment Share on other sites More sharing options...
Zedna Posted April 20, 2011 Share Posted April 20, 2011 Look here: http://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F Resources UDF ResourcesEx UDF AutoIt Forum Search 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