aaaz Posted May 9, 2016 Share Posted May 9, 2016 Hi Everyone, I wrote autoit script that work perfectly on exe. nonetheless, when I just make it work together with window server 2008 task schedule The process stop at below code section. Local $Btnlogin = _IEGetObjByName($oIE, "LOGIN") _IEAction($Btnlogin, "click") ;~ Send("{ENTER}") sleep(7000) ;~Stop here send($path2) I though because when i run on schedule it has taskeng.exe appear then IE bar is grey. Please Help , Thank a ton. Link to comment Share on other sites More sharing options...
Juvigy Posted May 9, 2016 Share Posted May 9, 2016 Check out the task schedule UDF from the example scripts. It seems you haven't created the task to support windows. I think it was the checkbox "only run if the user is logged in" Link to comment Share on other sites More sharing options...
aaaz Posted May 10, 2016 Author Share Posted May 10, 2016 The task can go but stop at step sent string because IE is not an active (color Blue @menu bar) window. could we set it to an active window when run through task schedule? Link to comment Share on other sites More sharing options...
aaaz Posted May 10, 2016 Author Share Posted May 10, 2016 Anyone has idea? Link to comment Share on other sites More sharing options...
Juvigy Posted May 10, 2016 Share Posted May 10, 2016 Not sure what you mean exactly , but check the WinActivate() function. It will activate the window. 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