Category : accessibility

I’m trying to make logging of cursor hovered menu items in notepad using Automation framework. But when i i hover the cursor on item i get an exception: AppDomain.CurrentDomain.FirstChanceException += (sender, eventArgs) => { Debug.WriteLine(eventArgs.Exception.ToString()); }; Automation.AddAutomationEventHandler(WindowPattern.WindowOpenedEvent, AutomationElement.FromHandle(Process.GetProcessesByName("notepad").First().MainWindowHandle), TreeScope.Element, OnNotepadControlAction); } I also tried to listen for other events (like AutomationElement events, ItemSelectedPattern, InvokePattern, etc.), ..

Read more

I’m still hacking away on my little Screen Reader project, and need to add support for MSAA/UIA/IAccessible/other Accessibility APIs, but I can’t seem to find any good tutorials for doing so (in Python, that is). I can find a lot of ctypes/comtypes tutorials, but I need more functionality, I already know how to use those ..

Read more

I started hacking away on a tiny screen reader project the other day (it’ll probably never take off, but everyone needs a hobby, plus it’s a tool that I use on the daily, why not make my own)? Anyways, I currently only have support for getting the active foreground window text with win32gui.GetWindowText(win32gui.GetForegroundWindow()). Every time ..

Read more

As title says. I would like to know if i can hide overloaded operator of class/struct from Visual Studio’s member/function list (see images below) without using private: or protected: which makes the operators inacessible in C++. Accessing via Class/Struct Name::UnwantedThingsHere Accessing via declared variable class/struct a, a.UnwantedThingsHere declaration of the struct and operator overloads: struct ..

Read more