Shoutbox

Activate a script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: Activate a script (/showthread.php?tid=91673)

Activate a script by fanatick on 07-27-2009 at 03:14 PM

How to active a script with the registry?
Thanks for you help


RE: Activate a script by blessedguy on 07-27-2009 at 04:12 PM

Go to HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts and choose the script you want to enable/disable.

Let's say you want to enable "Calculator" script, just click the "Calculator" folder in the above path and change the "Enabled" key from 0 (Disable) to 1 (Enable)


RE: Activate a script by fanatick on 07-27-2009 at 05:26 PM

It don't work , When i desactive it , the script stay "enable" in windows registry ,  and iin C:\Program Files\Messenger Plus! Live\Scripts , when i create a new folder and dezipp the .plsc , and after i go to windows registry the folder dosnt exist , and when i create a new Dword, and i wrote 1 , it don't work.
But in a other thread i have seen this :
Messenger Plus! Live doesn't check the registry every time to see if a script is enabled. So by just change the Enabled DWORD you can't get to start or stop a script. I guess changing the value and then restart the script might do the trick. See

and He said to go on this thread : http://shoutbox.menthix.net/showthread.php?tid=66...d=732934#pid732934

But i don't understand what they do
thanks to help me


RE: Activate a script by ShawnZ on 07-27-2009 at 05:31 PM

you have to restart messenger after changing that value i believe :p


RE: Activate a script by matty on 07-27-2009 at 05:32 PM

This isn't a manual process. You do not need to unzip the PLSC and edit the registry. If Messenger Plus! Live is installed double clicking the PLSC file will import and setup the registry structure for that script and enable it.


RE: RE: Activate a script by fanatick on 07-27-2009 at 05:38 PM

quote:
Originally posted by matty
This isn't a manual process. You do not need to unzip the PLSC and edit the registry. If Messenger Plus! Live is installed double clicking the PLSC file will import and setup the registry structure for that script and enable it.
Yes i know ......
But i want to activate this script without opening it. I want to make a auto installer script.

Oui je sais mais je voudrais l'activer sans l'ouvrir , en fait je voudrais faire un installeur de script si tu vois le genre et qu'il lactive
RE: Activate a script by blessedguy on 07-27-2009 at 06:10 PM

quote:
Originally posted by fanatick
But i want to activate this script without opening it. I want to make a auto installer script.
You asked only how to enable, not how to install it =)
Anyways, why an auto installer script? Plus! does it automatically using MPTools.exe as far as I know...

(Also, MPTools.exe won't open it, only extract it's contents and all that stuff, right?)
RE: Activate a script by fanatick on 07-27-2009 at 06:30 PM

My auto installer , dezzip the script create the folder etc..... but after the script is not " activate " , he don't work , so i need to know how activate it , without go on msn and cross the case to activate it, iwant activate it by registry or other you understand me?


RE: Activate a script by djdannyp on 07-27-2009 at 06:45 PM

Why do you want an auto-installer?

Double clicking the PLSC already does everything that you are describing


RE: Activate a script by fanatick on 07-27-2009 at 06:46 PM

To make a pack of many script and auto install us .


RE: Activate a script by matty on 07-27-2009 at 07:11 PM

Just setting Enable=1 in the registry will not start the script. Windows Live Messenger has to be restarted first.


RE: Activate a script by fanatick on 07-27-2009 at 07:20 PM

Yes and when i restart it dont work because i can add the script  , active it when double clicking and import it , and when i desactivate it , in a registry he is not in disable he is always in enable.


RE: Activate a script by djdannyp on 07-27-2009 at 07:50 PM

quote:
Originally posted by fanatick
To make a pack of many script and auto install us .

Surely it'd be easier to just have a batch file to do that?  Just to run the PLSCs one after the other?
RE: Activate a script by CookieRevised on 07-28-2009 at 04:14 PM

quote:
Originally posted by fanatick
When i desactive it , the script stay "enable" in windows registry
You need to refresh the registry window.

quote:
Originally posted by fanatick
and iin C:\Program Files\Messenger Plus! Live\Scripts , when i create a new folder and dezipp the .plsc , and after i go to windows registry the folder dosnt exist
Of course not. Simply unzipping the PLSC is not the same as installing the script via Messenger Plus!. Messenger Plus! does a lot more things than simply making a new script folder. eg: creating a registry entry for that script.

quote:
Originally posted by fanatick
and when i create a new Dword, and i wrote 1 , it don't work.
Because Plus! does not check the registry all the time. It only checks the registry for those flags when it is instructed to do so. eg: when you reload/restart a script, when you enable/disable it from the Preferences Window, when Messenger starts. So, simply changing the registry value does not tell Plus! to read that new registry value.

--------------

fanatick,

It seems you're making things a bit complicated and/or that you don't quite understand what the regisrty is or does.

Plus! already installs and activates the script when you double click on the PLSC (the script pack) file. So what is the exact reason why you need to make you own installer, apparently without the basic knowledge (eg: workings of the registry) you need to know to program one?

Remember that installing a script, in the PROPER way, is not simply unzipping the PLSC file and setting some registry flag. It also involves stopping and disabling the existing script, registering DLLs if there are any defined in the ScriptInfo.xml file. And it also involves instructing Messenger Plus! to reload the scripts.

All this could be done by some program you make yourself, sure, but all this is already done by MPTOOLS.EXE anyways. So why would you want to make another program which does the exact same thing?

PS: If you don't want to double click and want to automate the install process a bit, than simply use this command line:
    MPTools.exe /ImportScript="path/filename of the script package"
This is the exact command line which is executed in Windows when you double click a PLSC script package.