![]() Call MsgPlus functions from a script - 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: Call MsgPlus functions from a script (/showthread.php?tid=80727) Call MsgPlus functions from a script by mynetx on 01-05-2008 at 05:25 PM
A script uses a BrowserControl. It is thus only compatible with MPL >=4.50. How can I open the original MsgPlus Update dialog when MsgPlus.VersionBuild < 312? I'm also thinking of cases where the user set the auto-update check off in MPL prefs... RE: Call MsgPlus functions from a script by markee on 01-06-2008 at 12:26 AM You could just make a window explaining that some features won't work until they upgrade plus to the latest version if their version number is not what you need.... RE: Call MsgPlus functions from a script by CookieRevised on 01-06-2008 at 01:15 AM
quote:Which is indeed what every script in such a situation should do.... ---- mynetx, you can only invoke functions which are listed in the Plus! menus. This is done by sending the cmdid (command id) of the wanted menu item to the main Messenger window using the PostMessageW Windows API. eg: code:* similar cmdids exist for items in the Plus! menus in a chatwindow. * The above short example code requires that the contactlist window exists! To not depend on that, see the link below. But don't simply trigger the Plus!-update check. This is actually not very user friendly (the user doesn't know that your script didn't work, so he/she also can simply discard the auto-update thinking he/she doesn't need it, etc). Unless you first show the user a dialog explaining that your script needs the latest Plus! version, like markee already said. EDIT: see also here for some important remarks and more details... |