Rick,
Try
print Mouse.Window.Accessible.Description
Regards,
Steve
On 5/2/2012 11:51 AM, RicksPlace wrote:
> Hi:
> I am working with VB.net 2010 Express, the WindowEyes Immediate App
and the Microsoft Inspect.exe tools.
> In Vb.net I have a form called Form1:
> I opened the Forms Designer and dropped some controls on it.
> Later, I went back into vb.net and brought up the forms designer with
Form1 loaded.
> I moved the Mous over one of the controls - a button I had dropped on
the design earlier.
> Windoweyes read the clips which are jumbled up.
> I fired up Inspect.exe and all the information was presented
correctly for the MSAA option.
> Below is the information from Inspect.exe.
> My question is:
> What Print Command would I use in the WindowEyes Immediate App to get
the Description Property for the Button under the Mouse?
> The text in the Description Property in Inspect.exe is the correct
information in the Text Property for that button.
> So, I am trying to read this Property using WindowEyes Immediate App
so I can present the correct text instead of the jumbled clips currently
read.
> I found the description property in the Accessible Object but
couldn't figure out how to get to it for the button in the WindowEyes
Immediate App.
> Any idea of what print statement to use?
> Like:
> Print Mouse.something.something.Description (I have tried using
Accessible in the path with no luck so far).
> Do I have to execute a PreFetch or something?
> Here is a printout from the Inspect.exe tool set to record the MSAA
Information for a button control I dropped on the Form Designer of the
vb.net 2010 Express program.
> The form name is Form1.
> <BeginOutput>
> How found: Mouse move (75,772)
> hwnd=0x00020338 32bit
class="WindowsForms10.Window.8.app.0.34f5582_r39_ad1" style=0x50010000
ex=0x20
> ChildId: 0
> Interfaces: IEnumVARIANT IOleWindow
> Impl: Remote native IAccessible
> Name: "Button1"
> Value: [null]
> Role: push button (0x2B)
> State: focusable (0x100000)
> Location: {l:71, t:770, w:75, h:23}
> Selection:
> Description: "This is the first button"
> Kbshortcut: [null]
> DefAction: ""
> Help: [null]
> HelpTopic: ""
> ChildCount: 0
> Window: 0x2033E
> FirstChild: [null]
> LastChild: [null]
> Next: [null]
> Previous: [null]
> Left: [null]
> Up: [null]
> Right: [null]
> Down: [null]
> Other Props: Object has no additional properties
> Children: Container has no children
> Ancestors: "Button1" : window : focusable
> "Form1" : client : selected,focused,focusable
> "Form1" : window : sizeable,moveable,focusable
> "OverlayControl" : client : focusable
> "OverlayControl" : window : focusable
> "DesignerFrame" : client : focused,focusable
> "DesignerFrame" : window : focused,focusable
> none : client : focusable
> none : window : focusable
> "Form1.vb [Design]" : client : focusable
> "" : pane : focusable
> "Form1.vb [Design]" : pane : focusable
> "Form1.vb [Design]" : page tab : selected,focusable,selectable
> "" : page tab list : focusable
> "" : pane : focusable
> "WindowsApplication1 - Microsoft Visual Basic 2010 Express" :
window : focusable
> "Form1.vb [Design]" : window : focusable
> "WindowsApplication1 - Microsoft Visual Basic 2010 Express" :
window : focusable
> "WindowsApplication1 - Microsoft Visual Basic 2010 Express" :
window : sizeable,moveable,focusable
> "Desktop" : client : focusable
> "Desktop" : window : focusable
> [ No Parent ]
> <EndOfOutput>
> Thanks:
> Rick USA
--
Stephen Clower
Product support specialist & App Development
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com