aaaz

Task schedule & batch & IE

5 posts in this topic

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.

Untitled.jpg.226cb848d197560692038681023

 

Please Help , Thank a ton.

Share this post


Link to post
Share on other sites



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"

Share this post


Link to post
Share on other sites

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?

 

Share this post


Link to post
Share on other sites

Anyone has idea?:(

Share this post


Link to post
Share on other sites

Not sure what you mean exactly , but check the WinActivate() function. It will activate the window.

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