What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Enable or Disable MenuItems in runtime

Enable or Disable MenuItems in runtime
Author: Message:
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
34 / Male / Flag
Joined: Oct 2004
RE: Enable or Disable MenuItems in runtime
Check out the Messenger Plus! Scripting Documentation - Specifically this page: Events Reference > Messenger Plus! Events > OnGetScriptMenu.
What you need is to place your menus in the OnGetScriptMenu event rather than the ScriptInfo.xml file. This event is called whenever one of your script's menus is accessed and hence you can change it during runtime by adding the appropriate code in this event.

Also, checkout my post at http://shoutbox.menthix.net/showthread.php?tid=56747&pid=636090#pid636090 for a more user-friendly way of generating your menus at runtime.

This post was edited on 05-22-2007 at 02:11 PM by Volv.
05-22-2007 02:04 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Enable or Disable MenuItems in runtime - by Lobo on 05-22-2007 at 01:57 PM
RE: Enable or Disable MenuItems in runtime - by Volv on 05-22-2007 at 02:04 PM
RE: Enable or Disable MenuItems in runtime - by Lobo on 05-22-2007 at 02:27 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On