problem in using autohotkey with Microsoft active accessibility library

Hi

I am learning about the MSAA, Microsoft Active Accessibility library, to control ui.

I learnt from here:

https://www.autohotkey.com/boards/viewtopic.php?t=40590

But I found that my script is not working.

I try to learn by writing a script to accessing the file explorer 1st quick access item.

p.s. I know windows already has shortcut for that, but I want to make it as a learning process.

I have try the following two ways of doing but after pressing f1, nothing happend

Code1:

#NoEnv

;#SingleInstance force

Escape::ExitApp

F1::

button2click := "3.4.1.4.1.4.1.4.1.4.1.4"

WinGet, hWnd, id, ahk_class CabinetWClass

oAcc := Acc_Get("Object", button2click, 0, "ahk_id " hWnd)

oAcc.accDoDefaultAction(0)

return

; http://www.autohotkey.com/board/topic/77303-acc-library-ahk-l-updated-09272012/

; https dl.dropbox.com /u/47573473/Web%20Server/AHK_L/Acc.ahk Broken Link for safety

;------------------------------------------------------------------------------

; Acc.ahk Standard Library

; by Sean

; Updated by jethrow:

; Modified ComObjEnwrap params from (9,pacc) --> (9,pacc,1)

; Changed ComObjUnwrap to ComObjValue in order to avoid AddRef (thanks fincs)

; Added Acc_GetRoleText & Acc_GetStateText

; Added additional functions - commented below

; Removed original Acc_Children function

; last updated 2/25/2010

;------------------------------------------------------------------------------

Acc_Init()

{

Static	h

If Not	h

	h:=DllCall("LoadLibrary","Str","oleacc","Ptr")

}

Acc_ObjectFromEvent(ByRef _idChild_, hWnd, idObject, idChild)

{

Acc\_Init()

If	DllCall("oleacc\\AccessibleObjectFromEvent", "Ptr", hWnd, "UInt", idObject, "UInt", idChild, "Ptr\*", pacc, "Ptr", VarSetCapacity(varChild,8+2\*A\_PtrSize,0)\*0+&varChild)=0

Return	ComObjEnwrap(9,pacc,1), \_idChild\_:=NumGet(varChild,8,"UInt")

}

Acc_ObjectFromPoint(ByRef _idChild_ = "", x = "", y = "")

{

Acc\_Init()

If	DllCall("oleacc\\AccessibleObjectFromPoint", "Int64", x==""||y==""?0\*DllCall("GetCursorPos","Int64\*",pt)+pt:x&0xFFFFFFFF|y<<32, "Ptr\*", pacc, "Ptr", VarSetCapacity(varChild,8+2\*A\_PtrSize,0)\*0+&varChild)=0

Return	ComObjEnwrap(9,pacc,1), \_idChild\_:=NumGet(varChild,8,"UInt")

}

Acc_ObjectFromWindow(hWnd, idObject = -4)

{

Acc\_Init()
... keep reading on reddit ➑

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/lstar4ever
πŸ“…︎ Mar 06 2020
🚨︎ report
Microsoft Active Accessibility (ACC) Helper

In case anyone else has ran into the issues with control ClassNNs changing in some programs.

Here is a little tool that uses MAA/ACC to find and test the path to controls.

Drag the cross-hair to the control you want; code will be generated, you can then copy or test it.

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/CasperHarkin
πŸ“…︎ Jan 23 2020
🚨︎ report
Acc Help (Microsoft Active Accessibility)

I am trying to use ACC.ahk to find the ClassNN of each control in a .NET application via accSelect then use ControlGetFocus to get the ClassNN of the currently focused control.

;Acc.ahk 

WinGet, hWnd, ID, ahk_exe Payback.exe

q::
oAcc := Acc_Get("Object", "4.1.4.4.4", 0, "ahk_id " hWnd)
oAcc.accSelect(1)
ControlGetFocus, OutputVar , ahk_exe Payback.exe
msgbox % OutputVar 
oAcc := ""
Return

w::
oAcc := Acc_Get("Object", "4.1.4.2.4", 0, "ahk_id " hWnd)
oAcc.accSelect(1)
ControlGetFocus, OutputVar , ahk_exe Payback.exe
msgbox % OutputVar 
oAcc := ""
Return

If the application is active, I can select a field I want but only once. However, if the application is not active it lets me select different fields as I desire, as long as I click on another window first.

Anyone got any ideas on where I am going wrong? Or even a better way to deal with constantly changing ClassNN’s would really help.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/CasperHarkin
πŸ“…︎ Dec 18 2018
🚨︎ report
This is Peak Classic Microsoft. Windows 11 Login Screen. The Network flyout with Windows 10 UI, Accessibility flyout with Windows 8 UI, and Power flyout with Windows 11 UI. reddit.com/gallery/pm4fk7
πŸ‘︎ 609
πŸ’¬︎
πŸ‘€︎ u/Talib_Dota
πŸ“…︎ Sep 11 2021
🚨︎ report
How the new Microsoft vulnerabilities are being exploited to access active directories and how they can be remediated. blog.cymulate.com/more-cr…
πŸ‘︎ 47
πŸ’¬︎
πŸ‘€︎ u/men889
πŸ“…︎ Dec 16 2021
🚨︎ report
Game Accessibility Feature Tags are now Available on Microsoft Store for Xbox

Haven't seen this shared anywhere on Reddit. This is a very useful resource for anyone trying to find some accessible games!

https://news.xbox.com/en-us/2021/11/16/game-accessibility-feature-tags-now-available/

πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/Nighthawk321
πŸ“…︎ Dec 19 2021
🚨︎ report
Game Accessibility Feature Tags are now Available on Microsoft Store for Xbox /r/accessiblegaming/comme…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/Nighthawk321
πŸ“…︎ Dec 19 2021
🚨︎ report
Hey Microsoft, great job including accessibility and inclusive design in your presentation today!!

Hats off to you guys for doing that and bringing attention to it. Accessibility in engineering a product often gets overlooked and for most companies is an afterthought at best.

Discussing it right in the middle of your presentation in-between announcing new hardware was really nice. It's really smart of you to bring more visibility to this issue, and also for your teams to dedicate resources towards solving it!

πŸ‘︎ 112
πŸ’¬︎
πŸ“…︎ Sep 22 2021
🚨︎ report
Microsoft - Accessibility Idea - Color Blind System Setting?

Microsoft preaches accessibility and they have delivered a bunch of amazing features from the adaptive controller to the copilot settings. Kudos.

A friend of mine is severely colorblind, to the point to where he can’t see things due to the colors blending. I mentioned Back 4 Blood having a color blind mode (before looking into it myself) and now he preaches its one of the best he has seen offered in a game. After moving on to the next game, my buddy keeps referring to the amazing color blind mode that B4B has to offer and is sad he can’t have those options for any game.

It got me thinking, could there be a console wide color blind setting option for those who need it? Is this even possible?

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/librarytimeisover
πŸ“…︎ Nov 15 2021
🚨︎ report
Game Accessibility Feature Tags are now Available on Microsoft Store for Xbox news.xbox.com/en-us/2021/…
πŸ‘︎ 22
πŸ’¬︎
πŸ‘€︎ u/Turbostrider27
πŸ“…︎ Nov 16 2021
🚨︎ report
Microsoft is Disabling/Banning Dev Mode Access if you are not Actively using Dev Mode as Intended, Effectively Killing Xbox to be a Emulation Machine (Modern Vintage Gamer) youtube.com/watch?v=K9JhL…
πŸ‘︎ 30
πŸ’¬︎
πŸ‘€︎ u/The_Reaps
πŸ“…︎ Jan 05 2022
🚨︎ report
Game Accessibility Feature Tags are now Available on Microsoft Store for Xbox news.xbox.com/en-us/2021/…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/PartyInTheUSSRx
πŸ“…︎ Nov 17 2021
🚨︎ report
Join Rory Preddy of Microsoft, Thurs Sept 2, 2021 @ 11 AM PT for a discussion on accessibility in software development. v.redd.it/a0y5q94al3l71
πŸ‘︎ 27
πŸ’¬︎
πŸ‘€︎ u/jaydestro
πŸ“…︎ Sep 02 2021
🚨︎ report
Microsoft inclusive lead reveals there's a 'bit of a plateau' in accessibility tech pcgamer.com/xac-creator-m…
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/Turbostrider27
πŸ“…︎ Aug 23 2021
🚨︎ report
Microsoft 365 accessibility features fall 2021 lineup: Here's what's new windowscentral.com/micros…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/snasta
πŸ“…︎ Oct 11 2021
🚨︎ report
Great to see Sony taking an active interest in the console market here in India. Over 60k PS5 units have been sold in the first year , with Miles Morales the highest selling PS5 game so far. Hope to see Microsoft and Nintendo follow suit.
πŸ‘︎ 777
πŸ’¬︎
πŸ‘€︎ u/rippedalien571
πŸ“…︎ Jan 05 2022
🚨︎ report
Microsoft has grouped all the accessibility options on a single page.

Settings>Accessibility.

The "Show a high visibility outline around the area of focus on the page" option is new:

The outline appears, for example, around the search box when the site loads (since that is the focus of the page).

Or by clicking on the sites comment box.

Outline around the area of focus (GIF).

The "Open system preferences for captions" option opens the ease of Access page of the Windows 10 Settings app (Closed captions).

Edge Canary, build 94.0.979.0

πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/Leopeva64-2
πŸ“…︎ Aug 10 2021
🚨︎ report
Microsoft has grouped all the accessibility options on a single page. /r/MicrosoftEdge/comments…
πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/Leopeva64-2
πŸ“…︎ Aug 10 2021
🚨︎ report
Microsoft Accessibility Boss Jenny Lay-Flurrie Reflects On Three Decades Of The β€˜Landmark’ Americans With Disabilities Act forbes.com/sites/stevenaq…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/mike_gifford
πŸ“…︎ Aug 11 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.