What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » QuickKey | [release] 2.2 | 29/11/2009

QuickKey | [release] 2.2 | 29/11/2009
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: BETA - QuickKey 1.0!
There are quite a few things you can do to reduce your code for instance:

js code:
function OnEvent_MenuClicked(sMenuId, nLocation, iOriginWnd) {
    MsgPlus.CreateWnd("Windows.xml", "Wnd"+sMenuId, 0);
}

In WndShortcuts instead of calling the ok button BtnOk you can call it BtnCancel and Plus! will internally close the window. You don't seem to do anything in regards to saving (because it is non configurable). Same with WndAbout.

You will run into an issue with Unregistering the hotkeys if you restart the script. Store the last used window handle somewhere outside of the script (registry maybe) and then read it from there when you are unregistering the hotkeys.

(Also escaping the " character is only needed if you are defining the string with "". Ex: var s = "this is my \"dog\""; or var s = 'I\'m from Canada.';)
js code:
function OnGetScriptMenu(nLocation) {
    return '<ScriptMenu>'+
          '<MenuEntry Id="Shortcuts">QuickKey shortcuts</MenuEntry>'+
          '<Separator/>'+
          '<MenuEntry Id="About">About QuickKey...</MenuEntry>'+
          '</ScriptMenu>';
}

Other than that so far so good.

This post was edited on 06-10-2009 at 08:27 PM by matty.
06-10-2009 08:26 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
QuickKey | [release] 2.2 | 29/11/2009 - by whiz on 06-10-2009 at 07:32 PM
RE: BETA - QuickKey 1.0! - by mynetx on 06-10-2009 at 07:38 PM
RE: QuickKey | [beta] 1.0 - by whiz on 06-10-2009 at 07:51 PM
RE: BETA - QuickKey 1.0! - by SergeantCross8 on 06-10-2009 at 08:15 PM
RE: BETA - QuickKey 1.0! - by matty on 06-10-2009 at 08:26 PM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by whiz on 10-27-2009 at 09:08 PM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by warmth on 11-14-2009 at 03:42 AM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by whiz on 11-15-2009 at 09:22 AM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by Spunky on 11-15-2009 at 01:08 PM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by warmth on 11-15-2009 at 02:22 PM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by matty on 11-16-2009 at 02:08 PM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by whiz on 11-16-2009 at 04:18 PM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by warmth on 11-17-2009 at 01:44 AM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by whiz on 11-18-2009 at 03:18 PM
RE: QuickKey | [release] 1.3 | 27/10/2009 - by Spunky on 11-18-2009 at 05:43 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by whiz on 11-22-2009 at 04:27 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by warmth on 11-22-2009 at 04:50 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by warmth on 11-23-2009 at 04:26 AM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by whiz on 11-24-2009 at 07:42 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by matty on 11-24-2009 at 08:10 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by Spunky on 11-24-2009 at 08:11 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by whiz on 11-24-2009 at 08:29 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by warmth on 11-24-2009 at 09:16 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by whiz on 11-24-2009 at 09:29 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by matty on 11-24-2009 at 11:51 PM
RE: QuickKey | [release] 1.5 | 22/11/2009 - by whiz on 11-25-2009 at 07:49 PM
RE: QuickKey | [release] 2.0 | 26/11/2009 - by whiz on 11-26-2009 at 08:53 PM
RE: QuickKey | [release] 2.0 | 26/11/2009 - by matty on 11-26-2009 at 10:59 PM
RE: QuickKey | [release] 2.0 | 26/11/2009 - by whiz on 11-28-2009 at 01:04 PM
RE: QuickKey | [release] 2.0 | 26/11/2009 - by warmth on 11-28-2009 at 05:02 PM
RE: QuickKey | [release] 2.0 | 26/11/2009 - by whiz on 11-29-2009 at 11:27 AM
RE: QuickKey | [release] 2.1 | 29/11/2009 - by whiz on 11-28-2010 at 04:53 PM
RE: QuickKey | [release] 2.1 | 29/11/2009 - by warmth on 12-01-2010 at 08:49 PM
RE: QuickKey | [release] 2.2 | 29/11/2009 - by whiz on 12-23-2010 at 07:25 PM
RE: QuickKey | [release] 2.2 | 29/11/2009 - by CookieRevised on 12-27-2010 at 06:48 AM
RE: QuickKey | [release] 2.2 | 29/11/2009 - by whiz on 12-27-2010 at 05:20 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