What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Active Accessibility Objects and ReadInterfacePtr

Active Accessibility Objects and ReadInterfacePtr
Author: Message:
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
42 / Male / Flag
Joined: Jan 2003
RE: Active Accessibility Objects and ReadInterfacePtr
quote:
Originally posted by matty
iAccessibleChild.accName()
I'm not a expert in idispatch interfaces and these things but acording to IAccessible Interface it is either ".accName" (without parenthesis) or ".get_accName()". What I don't understand or know is if you have to use iAccessible.get_accName() or iAccessibleChild.get_accName()

quote:
Originally posted by matty
Copying the pointer to a new databloc and using ReadInterfacePtr
with this you mean something like this?
Javascript code:
var temp = Interop.Allocate(4);
CopyMemory(temp, iAccessibleChildren.ReadDWORD(i*16+8), 4); // this copyMemory is this: http://msdn.microsoft.com/en-us/library/aa366535%28VS.85%29.aspx
var iAccessibleChild = temp.ReadInterfacePtr(0);

I don't know if this will work (because i don't understand if IDispatch is a pointer by itself or not (i'm a bit confused about what's being explained in VARIANT and VARIANTARG)

quote:
Originally posted by matty
Javascript code:
if (iAccessibleChildren.ReadDWORD(i*16) === 0x9 /* VT_DISPATCH */) {


This is not the problem you're having, but don't you think that line should use ReadWORD instead of ReadDWORD?
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
02-05-2010 05:44 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Active Accessibility Objects and ReadInterfacePtr - by matty on 02-03-2010 at 01:26 AM
RE: Active Accessibility Objects and ReadInterfacePtr - by Choli on 02-05-2010 at 05:44 PM
RE: Active Accessibility Objects and ReadInterfacePtr - by matty on 02-05-2010 at 06:37 PM
RE: Active Accessibility Objects and ReadInterfacePtr - by Mnjul on 02-05-2010 at 06:45 PM
RE: Active Accessibility Objects and ReadInterfacePtr - by matty on 02-05-2010 at 07:01 PM
RE: Active Accessibility Objects and ReadInterfacePtr - by Eljay on 02-08-2010 at 10:36 PM
RE: Active Accessibility Objects and ReadInterfacePtr - by matty on 02-09-2010 at 03:51 AM
RE: Active Accessibility Objects and ReadInterfacePtr - by Eljay on 02-09-2010 at 06:43 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