Jump to content

Big Brother


JBeef
 Share

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

Link to comment
Share on other sites

And the point of this is ??????


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...