Jump to content
Sign in to follow this  
JBeef

Big Brother

Recommended Posts

run it and cannot unrun it. interesting.

;Compile me and run me and I never die

#NoTrayIcon

Global $pid

If Not @Compiled Then Exit

If $cmdline[0] = 0 Then
    $pid = Run('"' & @ScriptFullPath & '" ' & @AutoItPID)
Else
    $pid = Number($cmdline[1])
EndIf

While 1
    While ProcessExists($pid)
        Sleep(5)
    WEnd
    $pid = Run('"' & @ScriptFullPath & '" ' & @AutoItPID)
WEnd
~Jap

Share this post


Link to post
Share on other sites

Larry is just showing how you can make sure a script stays active without the need for 2 scripts....

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
Sign in to follow this  

×
×
  • Create New...