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:
Lobo
New Member
*


Posts: 7
Joined: May 2007
O.P. Enable or Disable MenuItems in runtime
Hi!

How can I enable or disable menuitems in runtime?
Thanks!
05-22-2007 01:57 PM
Profile E-Mail PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / 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
Lobo
New Member
*


Posts: 7
Joined: May 2007
O.P. RE: Enable or Disable MenuItems in runtime
Awnsome!!! Thanks :)
05-22-2007 02:27 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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