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

WantReturn
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: WantReturn
There is a hot key class. Check out the "Video Converter Plus!" link in my signature; it points to a script that uses the particular class ("Hotkey.js"). Using that class, you can specify what should be done to the window:

JScript code:
// The [ENTER] key
VK_RETURN       = 0x0D;
 
// Create the window
var WndTest = MsgPlus.CreateWnd("Windows.xml" /* can be any XML file */,"WndTest" /* The window ID you want to create */)
 
// Create the hot key
// Note the last parameter
new Hotkey(VK_RETURN,0,MyWindow.Handle,function() {
    <do_what_you_want_here>
} /* This is how you specify an anonymous function.
Allows you to specify a function without using a variable */
);
 
//Register it
Hotkey_RegisterNotification(WndTest);
 
// Listen to the hot key notification
function OnWndTestEvent_MessageNotification(PlusWnd,Message,lParam,wParam) {
    // Call Hotkey_HandleEvent(); with the same parameters as the MessageNotification function.
    Hotkey_HandleEvent.apply(this,arguments);
}
 
// Make sure the hot key gets destroyed
function OnWndTestEvent_Destroyed(PlusWnd,ExitCode) {
    Hotkey_WindowDestroyed(PlusWnd);
}


This should work.

Side-note: credits go to Matti

This post was edited on 05-24-2009 at 08:38 AM by SmokingCookie.
05-24-2009 08:37 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
WantReturn - by toto69230 on 05-18-2009 at 08:18 PM
RE: WantReturn - by matty on 05-19-2009 at 01:00 PM
RE: RE: WantReturn - by toto69230 on 05-19-2009 at 06:58 PM
RE: WantReturn - by SmokingCookie on 05-24-2009 at 08:37 AM
RE: WantReturn - by toto69230 on 05-24-2009 at 01:50 PM
RE: WantReturn - by matty on 05-24-2009 at 03:54 PM
RE: RE: WantReturn - by SmokingCookie on 05-24-2009 at 04:58 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