473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSAA in C#

Hi!

I'm currently developing an application that tries to emulate the
functionality of AccExplorer, that is, get the IAccessible object of the
control currently under the mouse pointer. I've made some progress and am
able to get the IAccessible objects of certain controls (windowbar,
scrollbars, icons on the desktop, icons in the taskbar etc) while others
return a wierd, undocumented error number (-2147417843). The objects that
are returning the error number are buttons, buttons in containers,
textfields and more.

Here is my code:

public static bool ControlAtPoint(Point point)
{
IAccessible acc = null;
object childID;

int error = AccessibleObjectFromPoint(point, out acc, out
childID);
Debug.WriteLine("checking at: " + point.ToString());
Debug.WriteLine("acc: " + error);

if (acc != null)
{
int left, top, width, height;
acc.accLocation(out left, out top, out width, out height,
childID);
Debug.WriteLine("object@" + left + "," + top + ":" + (left +
width) + "," + (top + height));
Debug.WriteLine("object name: " + acc.get_accName(childID));
return true;
}

return false;
}

Any takers on what the error might be?
Feb 7 '06 #1
0 2269

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1946
by: Mythili Madhav | last post by:
Hi, I need to write a wrapper around MSAA in Python for having my own control classes like MyApplication, MyWindow, MyPushButton etc which I think is basically to subclass from MSAA's classes. I...
0
468
by: Chougule Vinay | last post by:
Dear all, Is Accessibility supported for NativeWindow in C# .Net. If yes, please please provide help links. A sample code for building the msaa server for a window is shown below. The microsoft...
0
970
by: Ulf | last post by:
Hi, I'm working on automated tests with c#. For a new project I need the functions provided by MSAA, but all (few...) info I find is for c++. I tried to use P/Invoke for the oleacc.dll, but so...
8
2569
by: Pete Davis | last post by:
First of all, I apologize for cross-posting to so many groups, but clearly there are only 2 people on the planet that understand MS Accessibility in ..NET and I'm hoping I might reach just one of...
1
1051
by: jonsolo11 | last post by:
I want to write a program that can automate another program, by supplying it with mouse and text events. First, is this possible? Second, how would I go about doing this? Basically, the other...
0
991
by: gregory_may | last post by:
I want to stuff information into a text box with via the accessibility API .... Anyone know how do I do it in .Net? So has anyone tried to talk to the Accessibility api with .Net? I cant seem to...
0
1124
by: JoyFang | last post by:
How to get a UI control caption by mouse actions, such as hovering, clicking... For example: Hover mouse to a button "Open" and get text of "Open" in C# This might need to use MSAA...
1
1269
by: krishnakant Mane | last post by:
this question is streight forward, short and sweet. I am developing some applications and being blind myself, expect that including me, all other blind people must be able to use it. so my...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.