Acc library (MSAA) and AccViewer download links

Post your working scripts, libraries and tools
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Acc library (MSAA) and AccViewer download links

28 Dec 2016, 09:31

I couldn't find a page on the new forum with up-to-date links for the Acc library and AccViewer so I'm posting some here:

See AccPack.zip at the bottom of this post, it contains AHK v1 versions of:
Acc.ahk
AccViewer.ahk
Anchor.ahk
iWB2 Learner UPDATED.ahk

==================================================

[Acc.ahk]
Autohotkey-scripts-.ahk/Acc.ahk at master · Drugoy/Autohotkey-scripts-.ahk · GitHub
https://github.com/Drugoy/Autohotkey-scripts-.ahk/blob/master/Libraries/Acc.ahk

[AccViewer.ahk]
Autohotkey-scripts-.ahk/AccViewer.ahk at master · Drugoy/Autohotkey-scripts-.ahk · GitHub
https://github.com/Drugoy/Autohotkey-scripts-.ahk/blob/master/DevTools/AccViewer.ahk

[Anchor.ahk (for use with AccViewer)]
AutoHotkey-Scripts/Anchor.ahk at master · polyethene/AutoHotkey-Scripts · GitHub
https://github.com/polyethene/AutoHotkey-Scripts/blob/master/Anchor.ahk

TO DOWNLOAD:
Go to the right-hand side of the page and right-click Raw.

TO INSTALL:
Place Acc.ahk and Anchor.ahk in the folder:
C:\Program Files\AutoHotkey\Lib

TO RUN:
Double-click AccViewer.ahk.

TO USE:
Drag the crosshair to a window/control/object.
Or hover over a window/control/object and press Ctrl+/.

TIPS ON RETRIEVING TEXT/INFORMATION VIA THE ACC LIBRARY:
jeeswg's Acc tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=40590
AccViewer Basic - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=32039

==================================================

[iWB2 Learner UPDATED.ahk (23,803 bytes)]
New item: iWB2 Learner · Issue #94 · ahkscript/awesome-AutoHotkey · GitHub
https://github.com/ahkscript/awesome-AutoHotkey/issues/94

TO DOWNLOAD:
Go to iWB2 Learner UPDATED.zip and right-click,
or instead, use the direct download link:
https://github.com/ahkscript/awesome-AutoHotkey/files/211139/iWB2.Learner.UPDATED.zip

TO RESOLVE THE ERROR ('Error: Invalid function declaration.'):
[note: this error has already been fixed in the AccPack.zip download below]
Edit the script, replace:
TV_GetDiffCount(p1, p2))
with:
TV_GetDiffCount(p1, p2)

==================================================

[Excel_Get function][new version][doesn't require Acc]
MS-Office-COM-Basics/Excel_Get.ahk at master · ahkon/MS-Office-COM-Basics · GitHub
https://github.com/ahkon/MS-Office-COM-Basics/blob/master/Examples/Excel/Excel_Get.ahk

[Excel_Get function][old version][requires Acc]
excel and com? - Ask for Help - AutoHotkey Community
https://autohotkey.com/board/topic/73940-excel-and-com/#entry469769
Attachments
AccPack.zip
(19.83 KiB) Downloaded 140 times
Last edited by jeeswg on 14 Apr 2018, 17:41, edited 12 times in total.
wolf_II
Posts: 1963
Joined: 08 Feb 2015, 20:55

Re: Acc library (MSAA) and AccViewer download links

20 Jan 2017, 09:51

Thank you very much for this.
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Acc library (MSAA) and AccViewer download links

20 Jan 2017, 10:12

Cheers, an absolute pleasure. And just so everyone knows I did not write these great functions!
burque505
Posts: 502
Joined: 22 Jan 2017, 19:37

Re: Acc library (MSAA) and AccViewer download links

06 Feb 2017, 18:10

For a copy that works with my 64-bit Win7 box you can try https://dl.dropboxusercontent.com/u/67647214/iWB2%20Learner%20UPDATED.ahk.
I corrected the typo listed above and moved a variable. Please let me know if it doesn't work or the link dies.
Edit: That link is dead due to Dropbox policy changes, but it's apparently irrelevant now. April 30, 2018
Thanks!
burque505
Last edited by burque505 on 30 Apr 2018, 15:46, edited 2 times in total.
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Acc library (MSAA) and AccViewer download links

06 Feb 2017, 19:32

I compared your version with the version I have using WinMerge.
Since I have the corrected the (two brackets) error also,
the only difference was:
;#INCLUDE %A_ScriptDir%\Query.ahk
#INCLUDE %A_ScriptDir%\Anchor.ahk
#INCLUDE %A_ScriptDir%\Acc.ahk

Indeed iWB2 Learner requires Anchor.ahk and Acc.ahk,
this can be done by putting them in
C:\Program Files\AutoHotkey\Lib,
but yes sometimes I include scripts directly using #Include.
Query.ahk is no longer needed, and is correctly commented out.

I don't know which variable you moved, WinMerge did not show
any moved variable.
Thank you for your comments.
User avatar
derz00
Posts: 491
Joined: 02 Feb 2016, 17:54
GitHub: derz00
Location: Middle of the round cube

Re: Acc library (MSAA) and AccViewer download links

07 Sep 2017, 20:01

Hallo @jeeswg

@jNizM recommended this library to make usable a key on my keyboard that AHK does not natively see. All I can see in forum threads, etc, is GUI related, so I feel lost. Any tips? Or who would know, or how do I learn?

Thanks :wave:
try it and see
...
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Acc library (MSAA) and AccViewer download links

07 Sep 2017, 20:29

I haven't personally done anything like that. Not that it's impossible, but I can't see how Acc would help with this, I view it more for interacting with GUIs as you say. Perhaps AHKHID (the word does look a little like 'Acc') or Lua? I'd say more if I knew any more. Best of luck.
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Acc library (MSAA) and AccViewer download links

15 Sep 2017, 07:31

I've since investigated AHKHID. Try these scripts in case they help to solve your problem.
NEW Barcode Input Capture (USB and RS232 compatible) - Page 2 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=36241&p=170673#p170673
AHK keyboard hook + AHKHID causing buggy behavior - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=18079&p=87925#p87925
partof
Posts: 56
Joined: 16 Jan 2016, 08:38

Re: Acc library (MSAA) and AccViewer download links

26 Dec 2017, 13:25

For the (others) dummies who(also) struggle to understand the syntax:
https://autohotkey.com/boards/viewtopic ... 72#p190772
malcev
Posts: 79
Joined: 12 Aug 2014, 12:37

Re: Acc library (MSAA) and AccViewer download links

30 Apr 2018, 12:40

I found that ACC library does not work with directive #if.
1 example - open google chrome, move cursor to address bar, and press f10, f11.
When we press f10 - the result will be wrong.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


2 example - open google chrome and press f10.
I get error - "Error 0x8001010D - An outgoing call cannot be made since the application dispatching an input-synchronous call".
If I press f11 - all works OK.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Is it bug of autohotkey or acc library or I do something wrong?
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Acc library (MSAA) and AccViewer download links

04 May 2018, 08:15

- @malcev: I did some tests and got the same results as you, the error message appeared when used with #If but otherwise the function worked.
- Since #If has to be fast, perhaps it's placing certain limits on what functions can do.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


[EDIT:] The issue is further discussed here:
#If and ComObjCreate return error 0x8001010D - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=48444
AHKStudent
Posts: 256
Joined: 05 May 2018, 12:23

Re: Acc library (MSAA) and AccViewer download links

27 May 2018, 14:18

Question: Does anyone know where in MSDN it talks about ACC? Curious to read up about it and how windows works within its api for this.

I tried doing acc or other searches but was not successful.

Thank you
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Acc library (MSAA) and AccViewer download links

27 May 2018, 14:40

There are some links here:
jeeswg's Acc tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=40590

This is pretty much the only link I've used:
IAccessible interface (Windows)
https://msdn.microsoft.com/en-us/library/windows/desktop/dd318466(v=vs.85).aspx
AHKStudent
Posts: 256
Joined: 05 May 2018, 12:23

Re: Acc library (MSAA) and AccViewer download links

28 May 2018, 02:59

jeeswg wrote:There are some links here:
jeeswg's Acc tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=40590

This is pretty much the only link I've used:
IAccessible interface (Windows)
https://msdn.microsoft.com/en-us/library/windows/desktop/dd318466(v=vs.85).aspx

That was helpful thank you
Nixcalo
Posts: 19
Joined: 06 Feb 2018, 04:24

Re: Acc library (MSAA) and AccViewer download links

12 Jun 2018, 10:51

AccViewer.ahk is not working in my system. I don't really know what it's supposed to do, but probably it's not supposed to crash when I press the Show Acc Structure... Unless I press that button, it does abssolutely nothing

My AHK version is 1.1.29.00

Edit: I have managed to do something, first changing the hotkey to CTRL+P (no idea why CTRL+/ did not work). However, it does not seem to find any difference between two dialog boxes I am using within a page :facepalm:
User avatar
jeeswg
Posts: 4604
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Acc library (MSAA) and AccViewer download links

12 Jun 2018, 11:12

- Try v1.1.29.01 or a version before v1.1.29.00.
- If you have any further queries re. the dialog boxes, I would suggest starting a new thread.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: burque505 and 11 guests