Announcement

Collapse
No announcement yet.

Script does not run when server is disconnected

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script does not run when server is disconnected

    I have an AutoIT script that only runs when logged on.
    As soon as you disconnect the RDP session, it only gets to the login screen and then stops.

    This is the part that is causing the issue:

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


    I've been told I should use WinExists and ControlSend, but have no idea how to change this script, as it was done by my predecessor, and I have very little knowledge of scripting.
    Last edited by krokkie; 12th February 2013, 20:10.
Working...
X