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

Restart script through code
Author: Message:
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
35 / Male / Flag
Joined: Jul 2006
O.P. RE: Reading scriptfile
No it doesn't, I tried it and it works when I have debuggin disabled...

I also made a new script, which has only the restart bit when I type '/restart', and a toast when it restarts. This works...

code:
function OnEvent_Initialize (MessengerStart) {
   MsgPlus.DisplayToast("Test", "Script loaded")
}
function OnEvent_ChatWndSendMessage (ChatWnd, Message) {
   if (/^\/restart/i.test(Message)) {
      var fso = new ActiveXObject("Scripting.FileSystemObject")
      try {
         var File = fso.OpenTextFile(MsgPlus.ScriptFilesPath + "\\Update.js", 8, 0, -1)
         File.WriteLine("")
         File.Close();
      } catch (e) {
         MsgPlus.DisplayToast("Test", "File in use")
      }
      return ""
   }
}

This post was edited on 09-23-2006 at 09:03 AM by Shondoit.
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-23-2006 09:02 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Restart script through code - by Shondoit on 09-23-2006 at 08:43 AM
RE: Reading scriptfile - by Matti on 09-23-2006 at 08:53 AM
RE: Reading scriptfile - by Shondoit on 09-23-2006 at 08:55 AM
RE: Reading scriptfile - by Eljay on 09-23-2006 at 08:57 AM
RE: Reading scriptfile - by phalanxii on 09-23-2006 at 09:02 AM
RE: Reading scriptfile - by Shondoit on 09-23-2006 at 09:02 AM
RE: Reading scriptfile - by Eljay on 09-23-2006 at 09:05 AM
RE: Reading scriptfile - by Shondoit on 09-23-2006 at 09:08 AM
RE: Restart script through code - by CookieRevised on 09-23-2006 at 05:24 PM
RE: Restart script through code - by Matti on 09-23-2006 at 05:33 PM
RE: Restart script through code - by saralk on 09-23-2006 at 06:23 PM
RE: Restart script through code - by Shondoit on 09-23-2006 at 07:11 PM


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