Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all 585 articles
Browse latest View live

Launchig apps

$
0
0
Sir i have built apps for windows now i am very confuse about this that when will it be launched?

AutomationElement.FromPoint takes long time on some occasions

$
0
0

I noticed that in some cases the AutomationElement.FromPoint method takes long time to return. I measured it and it looks like it is almost 10 times slower for some controls.

The controls I was able to reproduce this behavior on are the sub-menus in mRemoteNG (http://www.mremoteng.org/). I couldn't notice anything special about those controls..

Any ideas what might cause this?

Thanks,

Eyal

Popup class name and UI Automation

$
0
0

Hi all,

This is regarding IE9 popup automation. I am not able to get the DOM element for IE9 popup. Earlier i was using "Internet Explorer_TridentDlgFrame" class name and through FindWindowA method of User32 dll to get the DOM but using the name I am not able to get the DOM now. I am trying this from last week but unsuccessful. Can I get help from anyone regarding this?

Need a direction on start developing text to speech using .net in visual studio, thank you.

$
0
0

My current tool is Visual Studio 2008.

I want to develop something windows application to convert text to human language (Chinese).

It would be appreciated if someone can point me a direction. Thanks in advance.

automatically load data from database and display in textbox on form load

$
0
0

i want to load data from database and display on the text fields on my form..the data should get fetched from the db without any button click event on form but instead it should get fetched as soon as form is loaded and all the components(like textbox,label etc) gets displayed..i tried writing a function and calling it after InitializeComponent(); method but it is not working..

is there any way i can load data and display it on textbox automatically on form_load?

or can i have a hidden button which will fire automatically when the form is loaded?

log in with webcam

$
0
0
i was wondering if anyone knows how to log on to windows using my webcam

Override Applications inputs with SendInput. Some Apps local handlers seem to override. Any advice?

$
0
0

Hey there,

I have a pastebin of my c# code. I hope this is the right forum category.
http://pastebin.com/Zw50s5rE

My goal is to use SendInput and user32.dll (if appropriate) to re-write keyboard mappings.
Right now, in the example code, if the user presses 'b' it returns 1 rather than calling 'CallNextHookEx'. This stops the 'b' data from acctually getting sent to the application. Since lParam (or wParam?) is read only, I can't seem to re-write the actual key data coming from the keyboard (why not?).
So I resort to SendInput to send new key data. I found virtual key presses are not what I want, so I use scan codes. Which I think is sending raw input data and kind of works better.
Now my problem is, the particular application (Nestopia) I want to send key inputs to seems to have its own handler that overrides my global hook. I can't find anything about this application or how it does it.
So, I suppose theres a few things I'd like to try and get more information on. My ultimate goal is create a program that overrides the keyboard mapping so that it is listened to over the applications desires.
Mainly setting up my own control scheme for games and emulators.

When windows does the on screen keyboard, that seems to be different from the actual keyboard, yet works fine with other applications like Nestopia. Is there a way to mimic that?

When Data comes in from a USB from an input device like a mouse or keyboard, is there a way to grab that data on the lowest level and alter it, to give me as an admin of a machine 'full control', despite the security risks?

I'd really like to just be able to fully control my inputs. SendInput works for the most part, but for the few applications that seem to have something else going on. Perhaps this is because my hooks are global? Is there a way to write application specific hooks for applications that I didn't code?

On another note, I'd like to re-map an Xbox 360 inputs as well. But that might be for a different post. Unless there's a universal way to edit raw input data, re-written at the lowest layer to run across the system? (master remapping of some sort).

Would there be a book on this type of information? Do these types of questions fall under a field I can study more into?

UI Automation for Delphi application

$
0
0

Hi,

I have been tasked with writing automated tests for a huge legacy application written in Delphi.  I have looked at using UI Automation from a mstest or nunit harness(C#), but have come across a major stumbling block.  When I use UI Spy to look at the delphi application, the Automation ID returned from every control is a arbitrary number. It changes every time the application is launched. 

 

I have been looking at the documentation on MSDN, and I am guessing that this can be rectified by implementing a custom provider.  Any pointers as to how this can be accomplished in Delphi?  We have full access to the source code for the Delphi application.

 

Thanks,

Erling


Accessing a button on a customized backstage in Word 2013

$
0
0

Is it posible to detect a button click if the button is located in a customized backstage in Word 2013?

I'm about to start looking at MSAA documentation, hopefully somebody can clue me in if this feasible at all.

Regards,

Michael

Custom Save As button



How to specify Contains in UI Automation PropertyCondition

$
0
0

Hi,

I am using UI Automation for GUI testing.

My window title contains the application name appended by a filename.

So, I want to specify Contains in my Name PropertyCondition.

I checked the overload but it is related to Ignoring the Case of the Name value.

Can anyone let me know how to specify Contains in my Name PropertyCondition?

Regards,

kvk1985

Why can't I see UI Automation information in IE11?

$
0
0
I created a Flash test with one object, gave it an accessible name in Flash and published it. When I open the .html file with the .swf file embedded in it, I cannot see the accessible name with Inspect Objects (comes in the Microsoft SDK). Other people in my office can see it. Is there a setting in IE11 that I need to change?

Inspect Objects will not work on my computer

$
0
0
I am using Inspect Objects that came with the SDK to check that my Adobe Flash files have the correct accessibility information. It is not working on my computer. It works on other people's computers, just not mine. Could it be an Internet Explorer problem?

WPF Window showing up as a Win32 HwndWrapper class control

$
0
0

I have a test suite implemented using Microsoft UI Automation Framework, running on a remote machine using a test controller and test agent (2012). This machine runs Windows Server 2008.

All tests have an initializing method that starts the application and then waits for its window to come up (using a certain Name property value). The tests run just fine when I do an isolated run, but if I run the entire suite,sometimes I notice that the element search for the window is failed or takes a really long while (circa 20-30 seconds).

If I use UIAVerify, I can see that the window element exists in the visual tree -- only that instead of having a "Window" class name and a framework type of WPF, the class name is a bizarre string looking like this: "HwndWrapper{application.exe}guid", where application.exe is obviously my application, and guid is a random (as far as I can tell) guid that shows up after it. Also, the window normally has an AutomationId property associated with it, and in this case it's null. If I keep polling the visual tree, I see that eventually, after 2-3 minutes, it changes to the expected WPF window class object and gets an AutomationId property value.

It also seems that this works just fine on my Windows 7 machine - is there a known bug with Windows Server 2008's support for UIA? Or can this be performance-related? (the server is significantly weaker than my local machine)

IU Accessibility - MFC Property Grid and JAWS

$
0
0

Hi,

I use CMFCPropertyGridProperty and CMFCPropertyGridCtrl classes to build my property grid. Pretty standard control, standard grid functionality, items can be expanded/collapsed to see sub-items etc.

While testing it with JAWS, there is no indication of a closed/open item. The same way it recognizes open/closed items while walking through a tree control.

I would probably need something like STATE_SYSTEM_COLLAPSED orSTATE_SYSTEM_EXPANDED , but these states are reserved for ROLE_SYSTEM_OUTLINEITEM.

Am I missing something or I need to overwrite the IAccessible::get_accRole and IAccessible::get_accState?

Thank you!

Alex

Draw rectagle like accexplorer tool does

$
0
0

Like accexplorer tool draw a highlight rectangle I am also trying to do the same but just show dialog instead for test.But on my machine it works win7 64bit; but fails on win8.1 wrong location ..But accexplorer is able to draw the rectangle perfectly...

I am using IAccessible::acclocation to get coordinates and the do screentoclient to show a child dialog at that location....But this is not accurate on the other machine.The other machine has different resolution etc

Please tell me how accexplorer draw the rectangle perfectly i.e calculates coordinates etc ..I have used spy++ which shows that accexplorer also draws rectangle by drawing thin windows bars






unresolved external symbol CLSID_AccPropServices .

$
0
0

Hi,

getting a linker error :"error LNK2001: unresolved external symbol _CLSID_AccPropServices ... "

while using CoCreateInstance(...)

I found  this article. INITGUID.H is not helping, as well as OBJBASE.H.

Thank you!

How to force narrator to read a text before another text

$
0
0

Hi,

       Currently I have a wpf user control that has a stackpanel and in the stackpanel there is a textblock and a few buttons. The focus is on the button and narrator reads the name of the button but I want the screen reader to read the text from the textblock too.

        Any idea on how to do force screen reader to read a text without focusing it?

Thanks,

Hoay

InvokePattern.Invoke throwing Win32Exception "Hot key is already registered"

$
0
0

Hello, 

I am currently using the UIAutomation API to handle Javascript dialogs.  For the most part this has worked great but every so often I get this random Exception and I'm not sure how to work around/fix it.

Exception:Hot key is already registered

Type:System.ComponentModel.Win32Exception

Stack:   at MS.Internal.AutomationProxies.Misc.ThrowWin32ExceptionsIfError(Int32 errorCode)

   at MS.Internal.AutomationProxies.Misc.SetFocus(IntPtr hwnd)

   at MS.Internal.AutomationProxies.WindowsButton.Invoke()

   at MS.Internal.AutomationProxies.WindowsButton.System.Windows.Automation.Provider.IInvokeProvider.Invoke()

   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)

   at MS.Internal.Automation.UiaCoreApi.CheckError(Int32 hr)

   at System.Windows.Automation.InvokePattern.Invoke()

 

This is the code that I am using to handle the dialog.

 

var okButton = window.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.AutomationIdProperty, "1"));var invokePattern = okButton.GetCurrentPattern(InvokePattern.Pattern) as InvokePattern;

invokePattern.Invoke();

This exception doesn't always happen but if I run ~100 scripts that use it I find it happens about 20 times.

I'm running these Scripts using the Microsoft Test Manager and the Microsoft Test Agents on Windows 7 and Windows Server 2008 boxes.

Any help would be appreciated. 

Thanks

windows 8 block alt-tab simulation ..

$
0
0
  • // Simulating a Alt+Tab keystroke
    keybd_event(VK_MENU,0x00,0 , 0); //Alt Press
    keybd_event(VK_TAB,0x00,0 , 0); // Tab Press
    keybd_event(VK_TAB,0x00, KEYEVENTF_KEYUP,0); // Tab Release

    windows 8 fail....
    windows 7 ok.

*.dll file is signed

UAC execute leve:asInvoker (/level='asInvoker')

  • UAC pass = yes

How to make JAWS read a name of a window if not focused

$
0
0

Hi,

I'm using VS2012.

I have a tabbed view. While switching between views a focus goes on a control inside of each view, which is intended.

JAWS reads the name of a focused control. How can I make JAWS read a view name in addition to a focused control.

Inspect shows the name of a corresponded view in "Ancestors" section.

Thanks

Viewing all 585 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>