Shoutbox

How to activate a script by the windows register? - 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: Scripting (/forumdisplay.php?fid=39)
+----- Thread: How to activate a script by the windows register? (/showthread.php?tid=70099)

How to activate a script by the windows register? by Geo on 12-31-2006 at 11:28 AM

I have to try to activate a script by modifying the value " Enabled " in the register but the script does not start?
The script seems marked well in Msg +, but it is not started8o|.

Thank's for your help

Geo


RE: How to activate a script by the windows register? by alexp2_ad on 12-31-2006 at 11:43 AM

If the script is checked but doesn't start then the script is most likely defective, and won't start because there is bad code in it.


RE: RE: How to activate a script by the windows register? by Geo on 12-31-2006 at 12:05 PM

quote:
Originally posted by alexp2_ad
If the script is checked but doesn't start then the script is most likely defective, and won't start because there is bad code in it.


the script is not defective, Because he start correctly by marking it irectly in script menus of Msg +

I tried other script and it is the same result
RE: How to activate a script by the windows register? by Felu on 12-31-2006 at 12:14 PM

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 CookieRevised's reply to Restart script through code ;).


RE: How to activate a script by the windows register? by TazDevil on 12-31-2006 at 03:05 PM

quote:
Originally posted by Geo
I have to try to activate a script by modifying the value " Enabled " in the register but the script does not start?
The script seems marked well in Msg +, but it is not started8o|.

Thank's for your help

Geo
Look in the debug window for any errors at a certain line in your script
There are two types of menus that Plus! can handle static and dynamic. Static menus are set in the ScriptInfo.xml file and are loaded separately so you will still see the emnu items.

In the other case where menus are dynamic and are handled by
function OnGetScriptMenu(Location)
{
}
so this kind of menu might or might not load depending where the error existed.
RE: RE: How to activate a script by the windows register? by Geo on 12-31-2006 at 05:43 PM

quote:
Originally posted by Felu
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 CookieRevised's reply to Restart script through code ;).


thanks, i try it

quote:
Originally posted by TazDevil
Look in the debug window for any errors at a certain line in your script
There are two types of menus that Plus! can handle static and dynamic. Static menus are set in the ScriptInfo.xml file and are loaded separately so you will still see the emnu items.

In the other case where menus are dynamic and are handled by
function OnGetScriptMenu(Location)
{
}
so this kind of menu might or might not load depending where the error existed.
Sorry TazDevil, is not a menu of a script, but the start script menu