QuickKey | [release] 2.2 | 29/11/2009 - 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: QuickKey | [release] 2.2 | 29/11/2009 (/showthread.php?tid=91005)
QuickKey | [release] 2.2 | 29/11/2009 by whiz on 06-10-2009 at 07:32 PM
Want a more advanced, feature-full QuickKey? Why not try Fingertips?
Features
- displays pop-up menus after the striking of preset hotkeys
- options menu (features detailed for each menu below)
- hotkey manager window (change the hotkeys to Ctrl/Shift/Alt/Win + [A-Z / 0-9])
- pop-up Messenger contact list (offline/blocked contacts can be hidden, and display method can be changed)
- new advanced contact list (shows contact information and options in a sub-menu)
- current conversation windows list (group windows can be hidden)
- quick status change (sign-out option can be hidden)
- advanced Messenger information (contact information can be hidden)
- click-to-copy information and titles (links to complete info lists)
- underlined options in menus (e.g. "About QuickKey..." - use the keyboard to navigate)
New in this Version
- added: Win key - include the Windows key in hotkey combinations
- fixed: options save/load - bug that didn't load hotkeys correctly after upgrading
Screenshot
Future Ideas
- media message formatting (e.g. displaying "<song> - <artist>" rather than "WMP\0Music\01...")
RE: BETA - QuickKey 1.0! by mynetx on 06-10-2009 at 07:38 PM
I like it and will probably use it. The only bad thing is that the contact list is not searchable.
RE: QuickKey | [beta] 1.0 by whiz on 06-10-2009 at 07:51 PM
What I might do is add an options window, so you can select only certain contacts to appear in a "shortened" list. If anyone has any ideas regarding options, feel free to post them.
RE: BETA - QuickKey 1.0! by SergeantCross8 on 06-10-2009 at 08:15 PM
its really useful. it takes care of some of the problems of having to click back and forth to do stuff. one thing I would change though, is to make the "information" window shorter. cuz right now its strecthed across the length of my screen. ill post a pic to show wat i mean.
RE: BETA - QuickKey 1.0! by matty on 06-10-2009 at 08:26 PM
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.
RE: QuickKey | [release] 1.3 | 27/10/2009 by whiz on 10-27-2009 at 09:08 PM
Download version 1.3 - now available (see the top post)!
RE: QuickKey | [release] 1.3 | 27/10/2009 by warmth on 11-14-2009 at 03:42 AM
it's great... but I don't think I will use it... the only good reason for use it is not available (Messenger Information is just for read it... no option for example to paste it somewhere or to copy to clipboard, etc)... Imagine use that information (or maybe more) to paste it here in forums with a single shortcut... think about it
RE: QuickKey | [release] 1.3 | 27/10/2009 by whiz on 11-15-2009 at 09:22 AM
Is it possible for a script to put something on the clipboard?
RE: QuickKey | [release] 1.3 | 27/10/2009 by Spunky on 11-15-2009 at 01:08 PM
quote: Originally posted by whiz
Is it possible for a script to put something on the clipboard?
It is possible, I made a few posts asking about it. There should be a reply somewhere if you search
RE: QuickKey | [release] 1.3 | 27/10/2009 by warmth on 11-15-2009 at 02:22 PM
quote: Originally posted by whiz
Is it possible for a script to put something on the clipboard?
Yes my friend... just search in the forums... but I think you should add both option copy to clipboard and past directly to a form good luck!
RE: QuickKey | [release] 1.3 | 27/10/2009 by matty on 11-16-2009 at 02:08 PM
Your code won't work if WLM crashed and the hotkeys are still registered.
What you can do as a work around is to store the last window handle in the registry and read that to unregister the windows.
RE: QuickKey | [release] 1.3 | 27/10/2009 by whiz on 11-16-2009 at 04:18 PM
quote: Originally posted by warmth
quote: Originally posted by whiz
Is it possible for a script to put something on the clipboard?
Yes my friend... just search in the forums... but I think you should add both option copy to clipboard and past directly to a form good luck!
Found it (http://shoutbox.menthix.net/showthread.php?tid=63067).
quote: Originally posted by matty
Your code won't work if WLM crashed and the hotkeys are still registered.
What you can do as a work around is to store the last window handle in the registry and read that to unregister the windows.
I'll work on that as well.
RE: QuickKey | [release] 1.3 | 27/10/2009 by warmth on 11-17-2009 at 01:44 AM
my friend... Ctrl+Alt+Q shortcut is giving me some problems in my Keyboard... I use right Alt+Q to bring @ on! but with you script enabled Right Alt+Q makes appear the QuickKey option menu!
RE: QuickKey | [release] 1.3 | 27/10/2009 by whiz on 11-18-2009 at 03:18 PM
quote: Originally posted by warmth
my friend... Ctrl+Alt+Q shortcut is giving me some problems in my Keyboard... I use right Alt+Q to bring @ on! but with you script enabled Right Alt+Q makes appear the QuickKey option menu!
Ah. I need to add in a method of changing the hotkeys. I'll work on that, too.
RE: QuickKey | [release] 1.3 | 27/10/2009 by Spunky on 11-18-2009 at 05:43 PM
quote: Originally posted by whiz
quote: Originally posted by warmth
my friend... Ctrl+Alt+Q shortcut is giving me some problems in my Keyboard... I use right Alt+Q to bring @ on! but with you script enabled Right Alt+Q makes appear the QuickKey option menu!
Ah. I need to add in a method of changing the hotkeys. I'll work on that, too.
Take a look at one of my old scripts (http://messengerpluslive.net/scripts/view/164-StatusKey/)... It should deal with the hotkey control etcf and how to read/write info in/out. I think Matty or Cookie helped me with it tbh
RE: QuickKey | [release] 1.5 | 22/11/2009 by whiz on 11-22-2009 at 04:27 PM
Download version 1.5 - now available (see the top post)!
All of the problems/suggestions in this thread have been fixed/added...
RE: QuickKey | [release] 1.5 | 22/11/2009 by warmth on 11-22-2009 at 04:50 PM
Great my friend... now you should add this:
1. script menu reachable from MP!L script icon too. Easy way to config.
2. able to copy all the information, not only the CTRL+ALT+I menu information.
3. clicking in the tittle should copy a summary of all the info
UPDATE 1:
Bug:
code: Función llamada: OnWndHotkeysEvent_EditTextChanged
Función llamada: OnWndHotkeysEvent_EditTextChanged
La función OnWndHotkeysEvent_EditTextChanged devolvió un error. Código: -2147352567
Función llamada: OnWndHotkeysEvent_CtrlClicked
Función llamada: OnWndSubclassEvent_MessageNotification
-> Building menu (4)...
-> Processing result (6004)...
UPDATE 2:
Bug: Right ALT still giving me problems with ALT+Q to get @!
much more suggestion and bug reports coming soon!
RE: QuickKey | [release] 1.5 | 22/11/2009 by warmth on 11-23-2009 at 04:26 AM
Bug: After install it.. /checkupdates says a new version is available 1.3! you made a mistake somewhere with builds numbers my friend!
Suggestion 1: Improve About window adding more stuff like links to here, betatester, congrats, translators, etc...
Suggestion 2: Update Screenshots of the first post! and the version in your signature!
Suggestion 3: Pressing ESC key should hide the menu appeared with the shortcut
RE: QuickKey | [release] 1.5 | 22/11/2009 by whiz on 11-24-2009 at 07:42 PM
quote: Originally posted by warmth
1. script menu reachable from MP!L script icon too. Easy way to config.
I'll work on that.
quote: Originally posted by warmth
2. able to copy all the information, not only the CTRL+ALT+I menu information.
...and that.
quote: Originally posted by warmth
3. clicking in the tittle should copy a summary of all the info
...and that, although that probably wouldn't apply to all menus.
quote: Originally posted by warmth
UPDATE 1:
Bug:
code: Función llamada: OnWndHotkeysEvent_EditTextChanged
Función llamada: OnWndHotkeysEvent_EditTextChanged
La función OnWndHotkeysEvent_EditTextChanged devolvió un error. Código: -2147352567
Función llamada: OnWndHotkeysEvent_CtrlClicked
Función llamada: OnWndSubclassEvent_MessageNotification
-> Building menu (4)...
-> Processing result (6004)...
I've noticed that, it occurs when OnEvent_Initialize is called and not signed in - it uses the registry functions that use the current user's email address. Fixed now.
quote: Originally posted by warmth
UPDATE 2:
Bug: Right ALT still giving me problems with ALT+Q to get @!
If you can get into the menu, go to Manage QuickKey shortcuts... and pick a different one. If not, start up Registry Editor and locate the key at the following path: HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\QuickKey\Settings\<email>\Hotkeys. A is 65, B is 66, C is 67 and so on.
quote: Originally posted by warmth
Bug: After install it.. /checkupdates says a new version is available 1.3! you made a mistake somewhere with builds numbers my friend!
I don't see why... it's set as 1.5, but I do get that as well.
quote: Originally posted by warmth
Suggestion 1: Improve About window adding more stuff like links to here, betatester, congrats, translators, etc...
Will do.
quote: Originally posted by warmth
Suggestion 2: Update Screenshots of the first post! and the version in your signature!
Will do, when I can find the time.
quote: Originally posted by warmth
Suggestion 3: Pressing ESC key should hide the menu appeared with the shortcut
Not exactly sure how to do that... would I need a WM_KEYUP notification, or something like that? But how do I close the menu?
RE: QuickKey | [release] 1.5 | 22/11/2009 by matty on 11-24-2009 at 08:10 PM
quote: Originally posted by whiz
quote: Originally posted by warmth
Bug: After install it.. /checkupdates says a new version is available 1.3! you made a mistake somewhere with builds numbers my friend!
I don't see why... it's set as 1.5, but I do get that as well.
This is how the Screenshot Sender 5 ScriptInfo.xml file looks:
xml code: <?xml version="1.0" encoding="UTF-16"?>
<ScriptInfo xmlns="urn:msgplus:scripts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:scripts PlusScripts.xsd">
<Information>
<Name>Screenshot Sender</Name>
<Description>Allows you to easily send screenshots to your contacts.</Description>
<Author>matty, Dempsey, Eljay & Mattias</Author>
<AboutUrl>http://beta.screenshotsender.com</AboutUrl>
<Version>5</Version>
>>> <UpdateId>SS5</UpdateId><<<
>>> <Build>46</Build><<<
</Information>
<BuildInfo>
<Major>5</Major>
<Minor>0</Minor>
<Build>0046</Build>
<Tag>Alpha</Tag>
<CompileDate>20091124</CompileDate>
<Debug>1</Debug>
</BuildInfo>
</ScriptInfo>
The two highlighted fields are what you want to be concerned with when using the Plus! internal updater.
RE: QuickKey | [release] 1.5 | 22/11/2009 by Spunky on 11-24-2009 at 08:11 PM
quote: Originally posted by whiz
I've noticed that, it occurs when OnEvent_Initialize is called and not signed in - it uses the registry functions that use the current user's email address. Fixed now.
Use the user's UserId instead... It's a better way to do it... Also, you say you fixed it, but have all the OnEvent_Initialize stuff happen on the OnEvent_SigninReady event and then, in OnEvent_Initialize, check the user's status to see if they are signed in, if they are, call the OnEvent_SigninReady event from there
RE: QuickKey | [release] 1.5 | 22/11/2009 by whiz on 11-24-2009 at 08:29 PM
quote: Originally posted by matty
quote: Originally posted by whiz
quote: Originally posted by warmth
Bug: After install it.. /checkupdates says a new version is available 1.3! you made a mistake somewhere with builds numbers my friend!
I don't see why... it's set as 1.5, but I do get that as well.
This is how the Screenshot Sender 5 ScriptInfo.xml file looks:
xml code: <?xml version="1.0" encoding="UTF-16"?>
<ScriptInfo xmlns="urn:msgplus:scripts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:scripts PlusScripts.xsd">
<Information>
<Name>Screenshot Sender</Name>
<Description>Allows you to easily send screenshots to your contacts.</Description>
<Author>matty, Dempsey, Eljay & Mattias</Author>
<AboutUrl>http://beta.screenshotsender.com</AboutUrl>
<Version>5</Version>
>>> <UpdateId>SS5</UpdateId><<<
>>> <Build>46</Build><<<
</Information>
<BuildInfo>
<Major>5</Major>
<Minor>0</Minor>
<Build>0046</Build>
<Tag>Alpha</Tag>
<CompileDate>20091124</CompileDate>
<Debug>1</Debug>
</BuildInfo>
</ScriptInfo>
The two highlighted fields are what you want to be concerned with when using the Plus! internal updater.
Yeah, I was just reading the post about it in the main MP!L forum. Added now.
quote: Originally posted by Spunky
quote: Originally posted by whiz
I've noticed that, it occurs when OnEvent_Initialize is called and not signed in - it uses the registry functions that use the current user's email address. Fixed now.
Use the user's UserId instead... It's a better way to do it... Also, you say you fixed it, but have all the OnEvent_Initialize stuff happen on the OnEvent_SigninReady event and then, in OnEvent_Initialize, check the user's status to see if they are signed in, if they are, call the OnEvent_SigninReady event from there
Again, just did that. Thanks, anyway.
RE: QuickKey | [release] 1.5 | 22/11/2009 by warmth on 11-24-2009 at 09:16 PM
quote: Originally posted by whiz
quote: Originally posted by warmth
UPDATE 2:
Bug: Right ALT still giving me problems with ALT+Q to get @!
If you can get into the menu, go to Manage QuickKey shortcuts... and pick a different one. If not, start up Registry Editor and locate the key at the following path: HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\QuickKey\Settings\<email>\Hotkeys. A is 65, B is 66, C is 67 and so on.
Yes I already did that... but there isn't any way you can fix it?
RE: QuickKey | [release] 1.5 | 22/11/2009 by whiz on 11-24-2009 at 09:29 PM
quote: Originally posted by warmth
quote: Originally posted by whiz
quote: Originally posted by warmth
UPDATE 2:
Bug: Right ALT still giving me problems with ALT+Q to get @!
If you can get into the menu, go to Manage QuickKey shortcuts... and pick a different one. If not, start up Registry Editor and locate the key at the following path: HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\QuickKey\Settings\<email>\Hotkeys. A is 65, B is 66, C is 67 and so on.
Yes I already did that... but there isn't any way you can fix it?
Perhaps I should I another hotkey to go straight to the Hotkey Manager...
I did originally want to make hotkeys follow a Shift + Alt + [...] approach, but the Shift key (MOD_SHIFT / 0x4) never worked.
I'll probably add Ctrl + Alt + M (default) to go to the Hotkey Manager.
RE: QuickKey | [release] 1.5 | 22/11/2009 by matty on 11-24-2009 at 11:51 PM
After looking over your code I have a few suggestions.
- Don't use OnEvent_Signin. Instead use OnEvent_SigninReady. This event is fired once the contactlist is fully received from the servers.
Also I was able to get the shift key to work without a problem.
RE: QuickKey | [release] 1.5 | 22/11/2009 by whiz on 11-25-2009 at 07:49 PM
quote: Originally posted by matty
Don't use OnEvent_Signin. Instead use OnEvent_SigninReady. This event is fired once the contactlist is fully received from the servers.
Done.
quote: Originally posted by matty
Also I was able to get the shift key to work without a problem.
Just tried it, and it seems to work. I wonder why I couldn't originally use it... anyway, adding a new option to pick which keys (Ctrl/Shift/Alt) to use.
RE: QuickKey | [release] 2.0 | 26/11/2009 by whiz on 11-26-2009 at 08:53 PM
Download version 2.0 - now available (see the top post)!
All of the (newer) problems/suggestions in this thread have been fixed/added, except for the "press Esc to close" idea, which I don't really know how to go about doing (the menus do have a close option, though)...
RE: QuickKey | [release] 2.0 | 26/11/2009 by matty on 11-26-2009 at 10:59 PM
What might be a good idea would be to make your own style menu using a Plus! window. Although you cannot dynamically add controls you could in theory rewrite the XML file as a work around or create a bunch of controls and reposition them as needed.
RE: QuickKey | [release] 2.0 | 26/11/2009 by whiz on 11-28-2009 at 01:04 PM
quote: Originally posted by matty
What might be a good idea would be to make your own style menu using a Plus! window. Although you cannot dynamically add controls you could in theory rewrite the XML file as a work around or create a bunch of controls and reposition them as needed.
Could do - I'd have one window for each menu, but I might have to do list controls and child windows for contact info and stuff. I'll try it...
RE: QuickKey | [release] 2.0 | 26/11/2009 by warmth on 11-28-2009 at 05:02 PM
Great my friend but there are new bugs:
1. Installing over previous version got me a wrong key combination... when I checked the settings panel... none of the CTRL/ALT/SHIFT were selected... so I deduced that there aren't declared a default settings after installation. So pressing only Q displayed the menu.
2. Clicking over the tittle gave me this result:
code: Messenger Conversations:
> Show group conversations: false
Messenger Information
> Show contact information: false
Messenger Contact List
> Show offline contacts: false
> Show blocked contacts: false
> Use advanced contact menu: false
> Show contact details: false
Messenger Status
> Show sign-out option: false
Global Options
> Disable menus on lock: false
> Show name, not email: false
RE: QuickKey | [release] 2.0 | 26/11/2009 by whiz on 11-29-2009 at 11:27 AM
quote: Originally posted by warmth
1. Installing over previous version got me a wrong key combination... when I checked the settings panel... none of the CTRL/ALT/SHIFT were selected... so I deduced that there aren't declared a default settings after installation. So pressing only Q displayed the menu.
Fixed now. The registry functions are supposed to write a value if it doesn't exist, but it messes up because they're already there. I've added extra functions to clear this up on initialization.
quote: Originally posted by warmth
2. Clicking over the tittle gave me this result:
code: Messenger Conversations:
> Show group conversations: false
Messenger Information
> Show contact information: false
Messenger Contact List
> Show offline contacts: false
> Show blocked contacts: false
> Use advanced contact menu: false
> Show contact details: false
Messenger Status
> Show sign-out option: false
Global Options
> Disable menus on lock: false
> Show name, not email: false
Clicking the title copies all the options, but they should all be true by default. Again, the registry functions don't write these when upgrading, but this is fixed now.
I'll re-release the script in a minute. EDIT: done!
RE: QuickKey | [release] 2.1 | 29/11/2009 by whiz on 11-28-2010 at 04:53 PM
I'm considering making a new version of QuickKey that uses Plus! interface windows instead of menus (although I might leave them in as an extra option). I'll also fix the issue with hotkeys already registered when Messenger crashes.
If anyone has any suggestions on what could be added or improved, feel free to suggest them.
RE: QuickKey | [release] 2.1 | 29/11/2009 by warmth on 12-01-2010 at 08:49 PM
Please do it
RE: QuickKey | [release] 2.2 | 29/11/2009 by whiz on 12-23-2010 at 07:25 PM
See the first post for all the development info!
RE: QuickKey | [release] 2.2 | 29/11/2009 by CookieRevised on 12-27-2010 at 06:48 AM
Don't get me wrong, it is a very nice script, and I'm sure it has its uses for people. But isn't it a bit shooting way beyond its target/purpose by now?
I mean, iirc it used to be a script which provided some shortcut keys to quickly set statusses.
Now it is a whole bunch of unrelated stuff, with, oh yeah, it still has those hotkey for statusses ability.
It is like calling those half computer/half blackberry like media monsters a 'cell phone': You can do everything with it, even comb your hair with it... and oh, btw, you can also make a phone call with it, I almost forgot...
...If you know what I mean
In short: wouldn't it be better to baptise this as a complete new script, and go back to the roots for 'QuickKey', just providing hotkeys for the statusses and personal statusses?
RE: QuickKey | [release] 2.2 | 29/11/2009 by whiz on 12-27-2010 at 05:20 PM
quote: Originally posted by CookieRevised
In short: wouldn't it be better to baptise this as a complete new script, and go back to the roots for 'QuickKey', just providing hotkeys for the statusses and personal statusses?
Hm... you have a point there. Perhaps I will make a different script for this. I'll keep QuickKey as it is, with just the menus and shortcuts, and do the interface stuff as a separate, new thing.
Edit: see Fingertips.
|