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