What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - Hotkeys!

HELP - Hotkeys!
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: HELP - Hotkeys!
I've added the following lines to my script:
js code:
var MOD_ALT = 0x1;
var MOD_CONTROL = 0x2;
var MOD_SHIFT = 0x4;
var WndSbc = MsgPlus.CreateWnd("Windows.xml", "WndSubclass", 2);
RegisterHotKey(WndSbc.Handle, "OpenMenu", MOD_ALT + MOD_SHIFT, 0x4D);
...but the debugger shows "Error: Object expected (code: -2146823281)".

Do I need to register the hotkey with the window, like this:
js code:
WndSbc.RegisterHotKey(WndSbc.Handle, "OpenMenu", MOD_ALT + MOD_SHIFT, 0x4D);

EDIT: updated the top code (included Alt/Control/Shift variables) - still doesn't work, though.

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

Messages In This Thread
HELP - Hotkeys! - by whiz on 06-08-2009 at 05:05 PM
RE: HELP - Hotkeys! - by SmokingCookie on 06-08-2009 at 05:12 PM
RE: HELP - Hotkeys! - by Mnjul on 06-08-2009 at 05:18 PM
RE: HELP - Hotkeys! - by whiz on 06-08-2009 at 06:19 PM
RE: HELP - Hotkeys! - by Matti on 06-08-2009 at 06:35 PM
RE: HELP - Hotkeys! - by whiz on 06-08-2009 at 06:46 PM
RE: HELP - Hotkeys! - by SmokingCookie on 06-08-2009 at 06:57 PM
RE: HELP - Hotkeys! - by whiz on 06-08-2009 at 07:02 PM
RE: HELP - Hotkeys! - by SmokingCookie on 06-08-2009 at 07:05 PM
RE: HELP - Hotkeys! - by whiz on 06-08-2009 at 07:10 PM
RE: HELP - Hotkeys! - by SmokingCookie on 06-08-2009 at 07:15 PM
RE: HELP - Hotkeys! - by whiz on 06-08-2009 at 07:39 PM
RE: HELP - Hotkeys! - by SmokingCookie on 06-08-2009 at 07:42 PM
RE: HELP - Hotkeys! - by whiz on 06-08-2009 at 08:39 PM
RE: HELP - Hotkeys! - by SmokingCookie on 06-09-2009 at 12:12 PM
RE: HELP - Hotkeys! - by whiz on 06-10-2009 at 07:26 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