Shoutbox

Restarting the script in code - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Restarting the script in code (/showthread.php?tid=75819)

Restarting the script in code by Alxandr on 07-03-2007 at 09:42 AM

How do I restart the script inside the script itself? Somthing like:

code:
if(newUser()){
    restartScript();
} else {
    Debug.Trace("This isn't a new user...");
}

RE: Restarting the script in code by Ezra on 07-03-2007 at 10:00 AM

There is no good way to restart a script.

Is it really needed to restart?

A way to restart a script is to have debugging enabled and then open the script with fso, edit it and then when you close it plus! will reload the script


RE: Restarting the script in code by Alxandr on 07-03-2007 at 10:07 AM

Nah... I found a way arround... I just neded to remove things from OnEvent_Initialize to OnEvent_Signin...


RE: Restarting the script in code by -dt- on 07-03-2007 at 10:20 AM

quote:
Originally posted by Ezra
A way to restart a script is to have debugging enabled and then open the script with fso, edit it and then when you close it plus! will reload the script
           
               
.
which only works if they person has dev mode enabled...
RE: Restarting the script in code by matty on 07-03-2007 at 10:56 AM

If Dev Mode isn't on when the script is resaved it wont restart? Interesting I thought it did regardless of being in Dev Mode or not.


RE: Restarting the script in code by markee on 07-03-2007 at 02:21 PM

Some light reading from a similarly named thread.... CookieRevised's reply to Restart script through code

N.B. By light, I mean light as in only on of Cookie's posts in the thread for you to read through.... :grin:


RE: Restarting the script in code by CookieRevised on 07-03-2007 at 07:39 PM

quote:
Originally posted by Alxandr
Nah... I found a way arround... I just neded to remove things from OnEvent_Initialize to OnEvent_Signin...
That's not "a way around" though, that is actually the proper way... So, the dodgy workaround would be to restart the script...

In other words, it was the other way around....

damn, now I am confused myself... what way is up, around or down?