What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Could someone do me a favor and run this

Could someone do me a favor and run this
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: Could someone do me a favor and run this
Thanks LJ! Could you guys run this now

js code:
var MAXLEN = 0xff;
var IID_IAccessible = Interop.Allocate(0x10);
Interop.Call('ole32', 'IIDFromString', '{618736E0-3C3D-11CF-810C-00AA00389B71}', IID_IAccessible);

// A chat window will automatically open
>>>Messenger.OpenChat('test@test.com');<<<

function OnEvent_ChatWndCreated (pChatWnd) {
    var hWnd = Interop.Call('user32', 'FindWindowExW', pChatWnd.Handle, 0, 'IM Window Class', '');
    hWnd = Interop.Call('user32', 'FindWindowExW', hWnd, 0, 'DirectUIHWND', '');
   
    var pAccessibleData = Interop.Allocate(4);
    if(Interop.Call('oleacc', 'AccessibleObjectFromWindow', hWnd, 0xFFFFFFFC, IID_IAccessible, pAccessibleData) === 0) {
        var iAccessible = pAccessibleData.ReadInterfacePtr(0);
        if(iAccessible) {
            var iAccessibleChildren = Interop.Allocate(16*iAccessible.accChildCount);
            var iAccessibleChildrenFound = Interop.Allocate(4);
            if (Interop.Call('oleacc', 'AccessibleChildren', iAccessible, 0, iAccessible.accChildCount, iAccessibleChildren, iAccessibleChildrenFound) === 0){
                for (var i=0; i<iAccessibleChildrenFound.ReadDWORD(0); ++i) {
                    if (iAccessibleChildren.ReadDWORD(i*16) === 0x9) {
                        var iAccessibleChild = iAccessibleChildren.ReadInterfacePtr(i*16+8);
                        if (iAccessibleChild) {
                            Debug.Trace(iAccessibleChild.accName(0)+' : '+iAccessibleChild.accValue(0));
                        }
                    }
                }
            }
        }
    }
}
08-24-2010 03:34 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Could someone do me a favor and run this - by matty on 08-24-2010 at 03:12 PM
RE: Could someone do me a favor and run this - by Chrissy on 08-24-2010 at 03:19 PM
RE: Could someone do me a favor and run this - by matty on 08-24-2010 at 03:19 PM
RE: Could someone do me a favor and run this - by Eljay on 08-24-2010 at 03:20 PM
RE: Could someone do me a favor and run this - by Chrissy on 08-24-2010 at 03:21 PM
RE: Could someone do me a favor and run this - by matty on 08-24-2010 at 03:23 PM
RE: Could someone do me a favor and run this - by Chrissy on 08-24-2010 at 03:28 PM
RE: Could someone do me a favor and run this - by Eljay on 08-24-2010 at 03:29 PM
RE: Could someone do me a favor and run this - by matty on 08-24-2010 at 03:34 PM
RE: RE: Could someone do me a favor and run this - by Chrissy on 08-24-2010 at 03:36 PM
RE: RE: Could someone do me a favor and run this - by segosa on 08-24-2010 at 07:05 PM
RE: Could someone do me a favor and run this - by matty on 08-24-2010 at 03:38 PM
RE: Could someone do me a favor and run this - by Chrissy on 08-24-2010 at 03:41 PM
RE: Could someone do me a favor and run this - by matty on 08-24-2010 at 03:42 PM
RE: Could someone do me a favor and run this - by matty on 08-24-2010 at 07:08 PM
RE: Could someone do me a favor and run this - by roflmao456 on 08-24-2010 at 08:16 PM
RE: Could someone do me a favor and run this - by CookieRevised on 08-24-2010 at 09:54 PM
RE: Could someone do me a favor and run this - by matty on 08-24-2010 at 10:45 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