What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Very simple script - very simple problem (I hope)

Very simple script - very simple problem (I hope)
Author: Message:
djdannyp
Elite Member
*****

Avatar
Danny <3 Sarah

Posts: 3546
Reputation: 31
37 / Male / Flag
Joined: Mar 2006
RE: RE: Very simple script - very simple problem (I hope)
quote:
Originally posted by Oceanor
Ps. no traces of these IDs with a search in the JS part.


Javascript code:
function OnOptionsEvent_CtrlClicked(Wnd, ControlId)
{
var Email = Messenger.MyEmail;
 
    if(ControlId=="BtnAbout"){
        var Wnd = MsgPlus.CreateWnd("gui.xml", "About");
    }
 
   
    if(ControlId == "BtnClose") {
   
    var optionSaved1 = new ActiveXObject('WScript.Shell').RegRead(MsgPlus.ScriptRegPath + Email + "\\command3");
    var optionSaved2 = new ActiveXObject('WScript.Shell').RegRead(MsgPlus.ScriptRegPath + Email + "\\command4");
    MsgPlus.DisplayToast(ScriptName, "Options sauvées.\n\nCouleur de début : " + optionSaved1 + "\nCouleur de fin : " + optionSaved2);
    optionSet1 = optionSaved1
    optionSet2 = optionSaved2
    Wnd.Close(1);
    }
   
    if(ControlId == "BtnDisable") {
        var StartColour = "BtnDisable";
        var EndColour = "BtnDisable";
        new ActiveXObject('WScript.Shell').RegWrite(MsgPlus.ScriptRegPath + Email + "\\command1",StartColour);
        new ActiveXObject('WScript.Shell').RegWrite(MsgPlus.ScriptRegPath + Email + "\\command2",EndColour);
        MsgPlus.DisplayToast(ScriptName, ScriptName + " a été désactivé !");
        Wnd.Close(1);
    }


Look more carefully ;)
[Image: 1ftt0hpk-signature.png]
AutoStatus Script || Facebook Status Script
5251 days, 17 hours, 40 minutes, 56 seconds ago
02-26-2009 12:17 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Very simple script - very simple problem (I hope) - by Oceanor on 02-25-2009 at 01:41 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 11:04 AM
RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-26-2009 at 11:25 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 12:08 PM
RE: RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-26-2009 at 12:17 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 01:20 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-26-2009 at 05:40 PM
RE: Very simple script - very simple problem (I hope) - by matty on 02-26-2009 at 06:36 PM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 12:02 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 10:04 AM
RE: Very simple script - very simple problem (I hope) - by Matti on 02-27-2009 at 10:09 AM
RE: RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-27-2009 at 10:36 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 10:19 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 10:42 AM
RE: Very simple script - very simple problem (I hope) - by djdannyp on 02-27-2009 at 11:03 AM
RE: Very simple script - very simple problem (I hope) - by Oceanor on 02-27-2009 at 12:34 PM
RE: Very simple script - very simple problem (I hope) - by matty on 02-27-2009 at 02:09 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