What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need some help with HotKey

Need some help with HotKey
Author: Message:
Yorick
Junior Member
**

Avatar

Posts: 22
33 / Male / Flag
Joined: Mar 2007
O.P. Need some help with HotKey
Hey guys,

I'm working on a translation plugin, screen below:

[Image: UltimateTranslatorOptions.png]

As you see it will be possible to set a HotKey to translate a message you have typed. But I am have a problem with retrieving the HotKey that is entered into the HotKeyControl. What function is used for retrieving the entered HotKey?

CheckboxControl - Button_IsChecked()
ListBoxControl - LstBox_GetCurSel()
HotKeyControl - ???()

Thanks in advance!

This post was edited on 01-16-2008 at 07:25 PM by Yorick.
01-16-2008 07:23 PM
Profile E-Mail PM Web Find Quote Report
warmth
Veteran Member
*****

Avatar
Electronic Engineer

Posts: 1730
Reputation: 26
39 / Male / Flag
Joined: Jul 2003
RE: Need some help with HotKey
:O nice script mate... hope one of my great scripter friends can help you with... sounds very promising...
@warmth - Beta Testing a life!
Official Nokia (former Ovi) Suite Beta Tester | Nokia Beta Labs Contributor of the month (June, 2011)
01-16-2008 07:39 PM
Profile PM Web Find Quote Report
Yorick
Junior Member
**

Avatar

Posts: 22
33 / Male / Flag
Joined: Mar 2007
O.P. RE: Need some help with HotKey
quote:
Originally posted by MeEtc
OnEvent_ChatWndEditKeyDown is an event that will return the value of a pressed key combination when the chat window is active

code:
function OnEvent_ChatWndEditKeyDown(ChatWnd, KeyCode, CtrlKeyDown, ShiftKeyDown
);


Ok that's what I'll need later, but the problem at the moment is different. When you click on Save you're setting will be saved in the registry, but before I can save this into the registry I need to retrieve the information entered into the HotKey control. That my problem for now, I can't find anything about retrieving the HotKey that is entered...
01-16-2008 07:50 PM
Profile E-Mail PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Need some help with HotKey
take a look at the hotkeys.js file within the Now Playing script by dt. He has a similar feature to record a key combination. Attaching the file for convenience.
EDIT: yes, I realized what you mean now after I posted, thats why I deleted my previous post

.txt File Attachment: hotkeys.js.txt (3.03 KB)
This file has been downloaded 244 time(s).

This post was edited on 01-16-2008 at 07:53 PM by MeEtc.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
01-16-2008 07:51 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Need some help with HotKey
To actually get the value of the HotkeyControl you need to use the HK_GETKEY message.

Here is the code:
code:
Debug.Trace(Interop.Call('user32','SendMessageW', pPlusWnd.GetControlHandle('NameOfTheHotkeyControl'), (0x0400 /* WM_USER */ +2) /* HK_GETKEY */, 0, 0));

.plsc File Attachment: Hotkey Example.plsc (2.03 KB)
This file has been downloaded 193 time(s).

This post was edited on 01-16-2008 at 08:27 PM by matty.
01-16-2008 08:19 PM
Profile E-Mail PM Find Quote Report
Yorick
Junior Member
**

Avatar

Posts: 22
33 / Male / Flag
Joined: Mar 2007
O.P. RE: Need some help with HotKey
Yes I was looking into the Music Now Playing code already, and it's exactly where I'm lookoing for. But I thnk I won't implent it in the first version, I'll use a pre-set shorcut for it (like the google translator script uses F5) instead of choosing your own shortcut.

Maybe I'll add it later, I'll first finish this script as it is now. Do you guys like the options page as it is now?

This post was edited on 01-16-2008 at 09:29 PM by Yorick.
01-16-2008 09:28 PM
Profile E-Mail PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Need some help with HotKey
I think it looks great. keep going!
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
01-16-2008 10:33 PM
Profile PM Web 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