quote:
Originally posted by dfnkt
What about the ability of scripts to add a button on the WLM contacts list or the ability of them to add another menu item on the messenger plus menu that could kick this thing off?
Scripts can only add menu items to the Plus! Scripts menu using OnGetScriptMenu or with the <ScriptMenu> block in your ScriptInfo.xml. With more advanced coding, you might be able to add a menu item to the right-click menu of the task bar button or system tray icon, but that's about as far as you can go.
Adding a button to the Messenger user interface itself is considered nearly impossible as it requires mad skills with memory hacks and UIB files - something which you can't do in a scripting environment. Even if they could technically allow Plus! scripts to add buttons to the Messenger UI, they wouldn't do it because it could easily be abused by malicious scripts and make Messenger look (even more) bloated. The scripts menu is there to centralize all scripts functionality in one place, making it easier for both users and developers to work with.
You could however assign a system-wide hotkey to fire a script's function using the Windows API. I made a class for this sometime ago, you can find it in
Countdown Live (GlobalHotkey.js) or
Screenshot Sender 5 (Classes\_global_hotkey.js). Just copy that script file over to your script and use the class' methods wherever you need them. I see that there's little documentation about it, so if you're planning to use that class but you don't know how, just PM me and I'll help you out.