Script menu not showing all scripts... - 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! Bug Reports (/forumdisplay.php?fid=7) +----- Thread: Script menu not showing all scripts... (/showthread.php?tid=96800) Script menu not showing all scripts... by whiz on 02-13-2011 at 05:19 PM I've been tweaking some of my scripts to work better with Plus! 5, but I've since noticed that the menus of some scripts aren't being shown in the script menu. The OnGetScriptMenu() is, however, being called, since the event trace is shown in the debugger, and anything else added to the function (such as a toast) is executed correctly. Exporting the scripts to a script pack and/or reinstalling them doesn't seem to make any difference. Script commands seem to work fine, though. Can anyone else confirm this? RE: Script menu not showing all scripts... by CookieRevised on 02-14-2011 at 09:53 AM
Can't confirm (yet)... RE: Script menu not showing all scripts... by whiz on 02-14-2011 at 03:49 PM
Well, I've just been experimenting with Idle Manager (one of my own scripts), which wasn't working at all, and I found a particularly weird problem. The start of the code in one of the files is like this: js code:When I start the script, the Initialize function isn't called, the script doesn't appear in the menu, commands don't work and so on. However... when I commented out the Name/PSM line, it works fine. Also, changing "Name" to a different variable name also fixes the problem. I don't know if it has something to do with another variable called "NAME" (used for my custom auto-updater), but I thought variable names were case sensitive. Edit: just noticed "Name" is highlighted blue in the snippet above (although it doesn't seem to highlight in the Plus! script editor, or in Notepad++). Is it a reserved name for something? RE: Script menu not showing all scripts... by CookieRevised on 02-14-2011 at 04:27 PM
Name is indeed used as a property for certain objects. But on its own it should work I think. RE: Script menu not showing all scripts... by whiz on 02-14-2011 at 06:45 PM
Looks like I'll just have to experiment with it some more... quote:Not the case with WLM 2009 on XP, it seems. I'm having no trouble setting the PSM via scripting... RE: Script menu not showing all scripts... by CookieRevised on 02-14-2011 at 07:05 PM yeah, it is only in WLM 2011 that MyPersonalMessage is readonly. It does produce an error when you try to set it in WLM 2011. |