Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

WinWaitActive?

$
0
0
I have a job that runs as a scheduled task, but because I have other apps runing on the server, it seems to stop at the login prompt.
When you click on it, it then proceeds to run the job without problems.

This is the part of the script that causes the issue:

;Sign In
WinWaitActive("Dispatch Manager Sign In")
Send($Pwd & "{Enter}")
WinWaitActive("classname=TMessageForm")
;MsgBox(0,"Purge Disabled Records","TMessageForm")
Send("{Enter}")
; ExitDM()


I tried changing the second WinWaitActive to WinActive, but it still fails
If I change bot to WinActive, it does not carry on with the job

What command do I use to force the login prompt to always be active, no matter what other apps are running?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>