What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HHEELLPP lol (repair my script)

HHEELLPP lol (repair my script)
Author: Message:
toto69230
Junior Member
**


Posts: 22
30 / Male / Flag
Joined: Feb 2009
O.P. Huh?  HHEELLPP lol (repair my script)
Hello I am initial in Javascript and I have a problem with my script:)
I am French, do not use too much word to complicate because I would not understand :o)

Script :
jscript code:
var ToastActiveMsg;
var ToastActiveName;
var ToastActivePsm;
var ToastActiveMedia;
var ToastActiveStatus;
var ToastActiveSignout;
var ToastActiveNull;
var ToastActiveOpen;
var ToastActiveClose;
var ActiveBeep;
var ActiveClone;
var ActiveCloneToast;
var ActiveCloneAlert;
var ActiveCloneAlertErreur;
var ActiveCloneAlertExcl;
var ActiveCloneEmail;
var ActiveCloneOpenChat;
var ActiveCloneNull;
var CloneActive = MsgPlus.ScriptRegPath+Messenger.MyUserId+"CloneActiv";
var CloneActiveToast = MsgPlus.ScriptRegPath+Messenger.MyUserId+"CloneActivToast";
var CloneActiveMsg = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ClnActivMsg";
var CloneActiveMsgErreur = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ClnActvMsgErreur";
var CloneActiveMsgExcl = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ClnActivMsgExcl";
var CloneEmail = MsgPlus.ScriptRegPath+Messenger.MyUserId+"Email";
var CloneOpenChat = MsgPlus.ScriptRegPath+Messenger.MyUserId+"OpenChatClone";
var CloneNull = MsgPlus.ScriptRegPath+Messenger.MyUserId+"CloneNull";
var ToastMsg = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastMsg";
var ToastName = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastName";
var ToastPsm = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastPsm";
var ToastMedia = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastMedia";
var ToastSignout = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastSignout";
var ToastStatus = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastStatus";
var Beep_Sound = MsgPlus.ScriptRegPath+Messenger.MyUserId+"Beep_Sound";
var ToastOpen = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastOpen";
var ToastClose = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastClose";
var ToastNull = MsgPlus.ScriptRegPath+Messenger.MyUserId+"ToastNull";

function OpenWnd(){
var Wnd = MsgPlus.CreateWnd("Options.xml", "Interface")
var Shell = new ActiveXObject("WScript.Shell");
try{ToastActiveMsg = Shell.RegRead(ToastMsg)}
catch(error){ToastActiveMsg = 0}
if(ToastActiveMsg!=0){
Wnd.Button_SetCheckState("ToastMsg", true)}
try{var ToastActiveName = Shell.RegRead(ToastName)}
catch(error){ToastActiveName = 0}
if(ToastActiveName!=0){
Wnd.Button_SetCheckState("ToastName", true)}
try{ToastActivePsm = Shell.RegRead(ToastPsm)}
catch(error){ToastActivePsm = 0}
if(ToastActivePsm!=0){
Wnd.Button_SetCheckState("ToastPsm", true)}
try{ToastActiveStatus = Shell.RegRead(ToastStatus)}
catch(error){ToastActiveStatus = 0}
if(ToastActiveStatus!=0){
Wnd.Button_SetCheckState("ToastStatus", true)}
try{ToastActiveMedia = Shell.RegRead(ToastMedia)}
catch(error){ToastActiveMedia = 0}
if(ToastActiveMedia!=0){
Wnd.Button_SetCheckState("ToastMedia", true)}
try{ToastActiveSignout = Shell.RegRead(ToastSignout)}
catch(error){ToastActiveSignout = 0}
if(ToastActiveSignout!=0){
Wnd.Button_SetCheckState("ToastSignout", true)}
try{ActiveBeep = Shell.RegRead(Beep_Sound)}
catch(error){ActiveBeep = 0}
if(ActiveBeep!=0){
Wnd.Button_SetCheckState("Beep", true)}
try{ToastActiveNull = Shell.RegRead(ToastNull)}
catch(error){ToastActiveNull = 0}
if(ToastActiveNull!=0){
Wnd.Button_SetCheckState("ToastRien", true)}
try{ToastActiveOpen = Shell.RegRead(ToastOpen)}
catch(error){ToastActiveOpen = 0}
if(ToastActiveOpen!=0){
Wnd.Button_SetCheckState("ToastOpen", true)}
try{ToastActiveClose = Shell.RegRead(ToastClose)}
catch(error){ToastActiveClose = 0}
if(ToastActiveClose!=0){
Wnd.Button_SetCheckState("ToastClose", true)}}

function OpenWndClone(){
var Wnd = MsgPlus.CreateWnd("Options.xml", "OptClonage");
Wnd.Combo_AddItem("TypeMsg", "Message Type Erreur");
Wnd.Combo_AddItem("TypeMsg", "Message Type Exclamation");
try{ActiveCloneAlertExcl = Shell.RegRead(CloneActiveMsgExcl)}
catch(error){ActiveCloneAlertExcl = 0}
if(ActiveCloneAlertExcl!=0){
Wnd.Combo_GetCurSel("TypeMsg")==1}
try{ActiveCloneAlertErreur = Shell.RegRead(CloneActiveMsgErreur)}
catch(error){ActiveCloneAlertErreur = 0}
if(ActiveCloneAlertErreur!=0){
Wnd.Combo_GetCurSel("TypeMsg")==2}
try{ActiveClone = Shell.RegRead(CloneActive)}
catch(error){ActiveClone = 0}
if(ActiveClone!=0){
Wnd.Button_SetCheckState("RIENTT", true)}
try{ActiveCloneToast = Shell.RegRead(CloneActiveToast)}
catch(error){ActiveCloneToast = 0}
if(ActiveCloneToast!=0){
Wnd.Button_SetCheckState("ToastAlertClone", true)}
try{ActiveCloneAlert = Shell.RegRead(CloneActiveAlert)}
catch(error){ActiveCloneAlert = 0}
if(ActiveCloneAlert!=0){
Wnd.Button_SetCheckState("ToastAlertExcl", true)}
try{ActiveCloneEmail = Shell.RegRead(CloneActiveEmail)}
catch(error){ActiveCloneEmail = 0}
if(ActiveCloneEmail!=0){
Wnd.Button_SetCheckState("Email", true)}
try{ActiveCloneOpenChat = Shell.RegRead(CloneActiveOpen)}
catch(error){ActiveCloneOpenChat = 0}
if(ActiveCloneOpenChat!=0){
Wnd.Button_SetCheckState("openclone", true)}
try{ActiveCloneNull = Shell.RegRead(CloneActiveNull)}
catch(error){ActiveCloneNull = 0}
if(ActiveCloneNull!=0){
Wnd.Button_SetCheckState("rienfaire", true)}}

function OnOptClonageEvent_ComboSelChanged(Wnd){
var Shell = new ActiveXObject("WScript.Shell");
if(Wnd.Combo_GetCurSel("TypeMsg")==1){
Shell.RegWrite(CloneActiveMsgExcl, -1)
Shell.RegWrite(CloneActiveErreur, 0)
}else{
Shell.RegWrite(CloneActiveMsgExcl, 0)
Shell.RegWrite(CloneActiveMsgErreur, -1)}}

function OnInterfaceEvent_CtrlClicked(PlusWnd, ControlId){
    var Shell = new ActiveXObject("WScript.Shell");
    if(ControlId == "Sauv"){
    if(PlusWnd.Button_IsChecked("ToastMsg"))Shell.RegWrite(ToastMsg, -1);
    if(PlusWnd.Button_IsChecked("ToastMsg")==false)Shell.RegWrite(ToastMsg, 0);
    if(PlusWnd.Button_IsChecked("ToastName"))Shell.RegWrite(ToastName, -1);
    if(PlusWnd.Button_IsChecked("ToastName")==false)Shell.RegWrite(ToastName, 0);
    if(PlusWnd.Button_IsChecked("ToastPsm"))Shell.RegWrite(ToastPsm, -1);
    if(PlusWnd.Button_IsChecked("ToastPsm")==false)Shell.RegWrite(ToastPsm, 0);
    if(PlusWnd.Button_IsChecked("ToastStatus"))Shell.RegWrite(ToastStatus, -1);
    if(PlusWnd.Button_IsChecked("ToastStatus")==false)Shell.RegWrite(ToastStatus, 0);
    if(PlusWnd.Button_IsChecked("ToastMedia"))Shell.RegWrite(ToastMedia, -1);
    if(PlusWnd.Button_IsChecked("ToastMedia")==false)Shell.RegWrite(ToastMedia, 0);
    if(PlusWnd.Button_IsChecked("ToastSignout"))Shell.RegWrite(ToastSignout, -1);
    if(PlusWnd.Button_IsChecked("ToastSignout")==false)Shell.RegWrite(ToastSignout, 0);
    if(PlusWnd.Button_IsChecked("Beep"))Shell.RegWrite(Beep_Sound, -1);
    if(PlusWnd.Button_IsChecked("Beep")==false)Shell.RegWrite(Beep_Sound, 0);
    if(PlusWnd.Button_IsChecked("ToastOpen"))Shell.RegWrite(ToastOpen, -1);
    if(PlusWnd.Button_IsChecked("ToastOpen")==false)Shell.RegWrite(ToastOpen, 0);
    if(PlusWnd.Button_IsChecked("ToastClose"))Shell.RegWrite(ToastClose, -1);
    if(PlusWnd.Button_IsChecked("ToastClose")==false)Shell.RegWrite(ToastClose, 0);
    if(PlusWnd.Button_IsChecked("ToastRien"))Shell.RegWrite(ToastNull, -1);
    if(PlusWnd.Button_IsChecked("ToastRien")==false)Shell.RegWrite(ToastNull, 0);
    PlusWnd.Close(1)}
    if(ControlId == "clone"){
    OpenWndClone()}}
   
function OnOptClonageEvent_CtrlClicked(PlusWnd, ControlId){
    var Shell = new ActiveXObject("WScript.Shell");
    if(ControlId == "BtnRetr"){
    if(PlusWnd.Button_IsChecked("RIENTT"))Shell.RegWrite(CloneActive, -1);
    if(PlusWnd.Button_IsChecked("RIENTT")==false)Shell.RegWrite(CloneActive, 0);
    if(PlusWnd.Button_IsChecked("ToastAlertClone"))Shell.RegWrite(CloneActiveToast, -1);
    if(PlusWnd.Button_IsChecked("ToastAlertClone")==false)Shell.RegWrite(CloneActiveToast, 0);
    if(PlusWnd.Button_IsChecked("ToastAlertExcl"))Shell.RegWrite(CloneActiveMsg, -1);
    if(PlusWnd.Button_IsChecked("ToastAlertExcl")==false)Shell.RegWrite(CloneActiveMsg, 0);
    if(PlusWnd.Button_IsChecked("Email"))Shell.RegWrite(CloneEmail, -1);
    if(PlusWnd.Button_IsChecked("Email")==false)Shell.RegWrite(CloneEmail, 0);
    if(PlusWnd.Button_IsChecked("openclone"))Shell.RegWrite(CloneOpenChat, -1);
    if(PlusWnd.Button_IsChecked("openclone")==false)Shell.RegWrite(CloneOpenChat, 0);
    if(PlusWnd.Button_IsChecked("rienfaire"))Shell.RegWrite(CloneNull, -1);
    if(PlusWnd.Button_IsChecked("rienfaire")==false)Shell.RegWrite(CloneNull, 0);
    PlusWnd.Close(1)}}
   
function OnGetScriptMenu(Location){
    if(Location == 2){}
    var ScriptMenu = "<ScriptMenu>";
    ScriptMenu    +=     "<MenuEntry Id=\"Opt\">Options de Track</MenuEntry>";
    ScriptMenu    +=     "<MenuEntry Id=\"Upd\">Mises a jours</MenuEntry>";
    ScriptMenu    +=     "<Separator/>"
    ScriptMenu    +=     "<MenuEntry Id=\"About\">A propos...</MenuEntry>";
    ScriptMenu    += "</ScriptMenu>";
    return ScriptMenu;}
   
function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd){
    if(MenuItemId == "Opt"){
    OpenWnd()}}



Window :
xml code:


its will be shitting for you all to look at but when I carry out changes in the window "OptConage", this are not safeguard.
I do not know if you very included/understood then I will make simple:

To repair my script  :(
thank you in advance

This post was edited on 02-03-2009 at 07:26 PM by WDZ.
02-03-2009 06:21 PM
Profile E-Mail PM Find Quote Report
djdannyp
Elite Member
*****

Avatar
Danny <3 Sarah

Posts: 3546
Reputation: 31
38 / Male / Flag
Joined: Mar 2006
RE: HHEELLPP lol
What error does it give?

Have you turned on Script Debugging option to see what the problem is?
[Image: 1ftt0hpk-signature.png]
AutoStatus Script || Facebook Status Script
5426 days, 2 hours, 33 minutes, 32 seconds ago
02-03-2009 07:13 PM
Profile E-Mail PM Find Quote Report
toto69230
Junior Member
**


Posts: 22
30 / Male / Flag
Joined: Feb 2009
O.P. RE: HHEELLPP lol (repair my script)
test my script, when you open the window: “OptClonage” all is set up that when you press the button “Return” all is safeguarded in the variables.
but when I close and that I open it again, nothing is to safeguard

it is the problem lol
02-03-2009 07:58 PM
Profile E-Mail 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