quote:
Originally posted by Felu
Instead of defining the ScriptMenu in the ScriptInfo.xml, do it within the script itself. So now, you can display the Show Recent Tracks option only in ChatWnds .
code:
function OnGetScriptMenu(Location){
var ScriptMenu = "<ScriptMenu>";
if(Location == 2)// If accessed from ChatWnd
ScriptMenu += " <MenuEntry Id=\"SendRecentTracks\">Send recent tracks</MenuEntry>";
ScriptMenu += " <MenuEntry Id=\"Options\">Options</MenuEntry>";
ScriptMenu += " <Separator/>";
ScriptMenu += " <MenuEntry Id=\"About\">About</MenuEntry>";
ScriptMenu += "</ScriptMenu>";
return ScriptMenu;
}
Thank you very much for pointing this out! Hadn't thought about it yet!
quote:
Originally posted by Eddie
Looks nice, works nice and is nice Well Done and gl lookin forward to the new version
Thank you!
EDIT:
Ok I need some help, because there going to be a lot of different xml feeds that will be read out (http://www.audioscrobbler.net/data/webservices/) I want to make a plugin system. So I'll put the plugins in a sub directory, and read them out. Any-one an example of a other script that has this sort of thing? Because as far as I can remember is that Jscript files in sub directory's aren't read out by default?