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

Developers heart felt wish!
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: Developers heart felt wish!
EnumWindows (callback: EnumWindowsProc)
InternetConnectW (callback: InternetSetStatusCallback)
EnumDisplayMonitors (callback: MonitorEnumProc)

Here is 3 off the top of my head.

quote:
Originally posted by CookieRevised
Aren't most (if not all) callback functions in the form of:
MessageCode, wParam, lParam ??

Making it actually more like:
code:
// instruct Plus! to make a (callback) function internally and let it return its address
var objCallbacks = {}
    objCallbacks['EnumWindows'] = MsgPlus.CreateCallback();

Interop.Call('user32', 'EnumWindows', objCallbacks['EnumWindows'], 0);

function OnFunctionCallback(hCallback, Message, wParam, lParam) {
    switch (hCallback) {

Making it almost the same as OnWindowidEvent_MessageNotification???

using this 'convention'/method you would have covered almost all callbacks... (By heart I only know of 1 callback function which uses 1 more parameter; WindowProc)

/me sits beside Matty on his knees begging :D


Using the many params was just to make sure all were covered WndProc who cares about we don't need Plus! scripting to subclass Windows thats just too much access to the system.

This post was edited on 02-06-2008 at 08:37 PM by matty.
02-06-2008 08:33 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Developers heart felt wish! - by matty on 02-05-2008 at 08:52 PM
RE: Developers heart felt wish! - by vikke on 02-05-2008 at 09:10 PM
RE: Developers heart felt wish! - by Patchou on 02-05-2008 at 10:10 PM
RE: Developers heart felt wish! - by matty on 02-05-2008 at 11:37 PM
RE: Developers heart felt wish! - by Patchou on 02-06-2008 at 07:51 PM
RE: Developers heart felt wish! - by CookieRevised on 02-06-2008 at 08:24 PM
RE: Developers heart felt wish! - by matty on 02-06-2008 at 08:33 PM
RE: Developers heart felt wish! - by Eljay on 02-06-2008 at 08:35 PM
RE: Developers heart felt wish! - by Patchou on 02-06-2008 at 08:50 PM
RE: Developers heart felt wish! - by Eljay on 02-06-2008 at 08:55 PM
RE: Developers heart felt wish! - by matty on 02-06-2008 at 08:56 PM
RE: Developers heart felt wish! - by Patchou on 02-06-2008 at 09:04 PM
RE: Developers heart felt wish! - by aNILEator on 02-06-2008 at 11:54 PM
RE: Developers heart felt wish! - by vikke on 02-08-2008 at 02:46 PM
RE: Developers heart felt wish! - by Matti on 02-08-2008 at 05:16 PM
RE: Developers heart felt wish! - by vikke on 02-08-2008 at 05:58 PM
RE: Developers heart felt wish! - by Patchou on 02-08-2008 at 05:59 PM
RE: Developers heart felt wish! - by vikke on 02-08-2008 at 06:18 PM
RE: Developers heart felt wish! - by Patchou on 02-08-2008 at 07:37 PM
RE: Developers heart felt wish! - by felipEx on 03-19-2008 at 07:24 PM
RE: Developers heart felt wish! - by matty on 03-19-2008 at 08:54 PM
RE: Developers heart felt wish! - by Patchou on 03-19-2008 at 11:47 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