Shoutbox

[?] Hotkeys (Grrr!) - 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: [?] Hotkeys (Grrr!) (/showthread.php?tid=68947)

[?] Hotkeys (Grrr!) by Spunky on 11-29-2006 at 03:17 AM

Right, I've been looking for over 3 HOURS now on how to use hotkeys and I don't care what MSDN says, it doesn't work :'(

I used a sample code that Matty posted but it had undefined variables and other variables that didn't get used ^o) I managed to get it so that the API call returns 1 meaning it was succesful, but the hotkey still doesn't work (The notify event returned nothing each time). Can someone please post a fully functional snippet to get one working please?


RE: [?] Hotkeys (Grrr!) by matty on 11-29-2006 at 03:34 AM

http://www.screenshotsender.com/files/ss4.hotkey_functions.js
http://www.screenshotsender.com/files/ss4.hotkey_variables.js
http://www.screenshotsender.com/files/ss4.variables.js

Here is an example of how to use hotkeys, now if it doesn't work dont complain I will fix it when I get home. I wrote this while at work.

Edit for people who are downloading this please let me know if there are any problems.

This example registers Ctrl + D.


RE: [?] Hotkeys (Grrr!) by Menthix on 11-29-2006 at 12:47 PM

quote:
Originally posted by Matty
please let me know if there are any problems.
quote:
Originally posted by debug window
Bad calling convention detected for "MessageBoxW" in "user32". The function must be declared with __stdcall and called with the appropriate number of paramet
:p
RE: [?] Hotkeys (Grrr!) by Spunky on 11-29-2006 at 01:42 PM

Thanks Matty. I had to alter the code SLIGHTLY... Probs my dodgy script though tbh ;) I got the "Bad Calling Convention" message as well ^o) Obviously replaced that code with a function though so it's not important :p


RE: [?] Hotkeys (Grrr!) by Menthix on 11-29-2006 at 02:18 PM

The example script will fail to initialize when starting a second Messenger using Plus!' polygamy, you might want to know about that.


RE: [?] Hotkeys (Grrr!) by Spunky on 11-29-2006 at 03:06 PM

Hmmm... that is a BIT of a problem... I can work around it for now though :p