iaccessible

How to check two IAccessible are Identical at runtime?(At C++ side)

落爺英雄遲暮 提交于 2020-06-01 05:12:07
问题 How to check two IAccessible are Identical at runtime? It seems that there is no method provided by MSAA. I know that 1.we can check multi property of these two IAccessible object, but stirng cmp/string get/role get/role cmp/... may consume lots of time. 2.the simplest way to compare these two object is compare the address, but I failed. Anyone can show me an example or give me a hint? Thanks very much! 来源: https://stackoverflow.com/questions/61937422/how-to-check-two-iaccessible-are

How to access a document's HTML in Firefox using IAccessible

好久不见. 提交于 2020-01-21 05:21:35
问题 I can get an IAccessible object from a Firefox window using this code: Guid guid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); object obj = null; int ret = AccessibleObjectFromWindow(hWnd, (uint) OBJID.WINDOW, ref guid, ref obj); Accessibility.IAccessible acc = (Accessibility.IAccessible)obj; However, I'm not sure where to go from here. I need to get the full HTML from the document. I know about the IAccessible.get_accValue() method, but I'm not really sure how to use it in relation

How to access a document's HTML in Firefox using IAccessible

≯℡__Kan透↙ 提交于 2020-01-21 05:21:07
问题 I can get an IAccessible object from a Firefox window using this code: Guid guid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); object obj = null; int ret = AccessibleObjectFromWindow(hWnd, (uint) OBJID.WINDOW, ref guid, ref obj); Accessibility.IAccessible acc = (Accessibility.IAccessible)obj; However, I'm not sure where to go from here. I need to get the full HTML from the document. I know about the IAccessible.get_accValue() method, but I'm not really sure how to use it in relation

Microsoft UIAutomation isn't ALWAYS working on some computers. C#

纵然是瞬间 提交于 2019-12-10 12:18:10
问题 I have some C# code for extracting url from Chrome. It usually works on Win7/Win 8.1, but on some computers with the same configuration it doesn't work. And, probably, there is no difference between these configurations. Why does it happen? Process[] procsChrome = Process.GetProcessesByName("chrome"); foreach(Process chrome in procsChrome) { if(chrome.MainWindowHandle == IntPtr.Zero) { continue; } AutomationElement mainWindow = AutomationElement.FromHandle(chrome.MainWindowHandle); elmUrlBar

MSAA COM-based?

三世轮回 提交于 2019-12-08 07:32:41
问题 I'm wondering if MSAA is COM-based, then one should be able to use CreateObject("Accessibility") to create an instance and call its methods. I had no success doing that. I have "OLEACC.DLL" in SYSTEM32 and it's registered with Windows. But the CreateObject fails. Any thoughts? I would like to use functions like AccessibleObjectFromPoint() to get the IAccessible object of the control at the given point. Has anybody had such an experience? Any input would be highly appreciated, Thanks, Kamil

MSAA COM-based?

人盡茶涼 提交于 2019-12-07 02:21:27
I'm wondering if MSAA is COM-based, then one should be able to use CreateObject("Accessibility") to create an instance and call its methods. I had no success doing that. I have "OLEACC.DLL" in SYSTEM32 and it's registered with Windows. But the CreateObject fails. Any thoughts? I would like to use functions like AccessibleObjectFromPoint() to get the IAccessible object of the control at the given point. Has anybody had such an experience? Any input would be highly appreciated, Thanks, Kamil MSAA is COM based. However, there is no co-creatable class exposed, it exposes only interfaces. That's

What is the correct solution to support IAccesible interface for caret movement in text editors?

陌路散爱 提交于 2019-12-04 16:58:22
问题 I want to implement a text editor from scratch which supports IAccessible interface. I am using MFC and Win32 API. When the caret position change in the standard text editors like Notepad, the corresponding letter, word or line to the caret movement is pronounced by client tools like Narrator, JAWS or etc. I don't know how to implement this feature. I search the internet and read the MSDN documentation. I read in http://msdn.microsoft.com/en-us/library/dd317978.aspx and http://msdn.microsoft

How to access a document's HTML in Firefox using IAccessible

丶灬走出姿态 提交于 2019-11-30 21:53:26
I can get an IAccessible object from a Firefox window using this code: Guid guid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); object obj = null; int ret = AccessibleObjectFromWindow(hWnd, (uint) OBJID.WINDOW, ref guid, ref obj); Accessibility.IAccessible acc = (Accessibility.IAccessible)obj; However, I'm not sure where to go from here. I need to get the full HTML from the document. I know about the IAccessible.get_accValue() method, but I'm not really sure how to use it in relation to Firefox. Any help would be much appreciated. Apparently you can't get the full HTML source using