What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Restarting the script in code

Restarting the script in code
Author: Message:
Alxandr
New Member
*


Posts: 7
34 / Male / Flag
Joined: Jun 2007
O.P. Huh?  Restarting the script in code
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...");
}
Alxandr
07-03-2007 09:42 AM
Profile E-Mail PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Restarting the script in code
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
[Image: 1-0.png]
             
07-03-2007 10:00 AM
Profile PM Web Find Quote Report
Alxandr
New Member
*


Posts: 7
34 / Male / Flag
Joined: Jun 2007
O.P. RE: Restarting the script in code
Nah... I found a way arround... I just neded to remove things from OnEvent_Initialize to OnEvent_Signin...
Alxandr
07-03-2007 10:07 AM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Restarting the script in code
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...
[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-03-2007 10:20 AM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Restarting the script in code
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.
07-03-2007 10:56 AM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: Restarting the script in code
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:
[Image: markee.png]
07-03-2007 02:21 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Restarting the script in code
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?
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-03-2007 07:39 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On