Get all text - not limited to WinGetText

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Almost_there
Posts: 404
Joined: 30 Sep 2014, 10:32

Get all text - not limited to WinGetText

19 Jan 2017, 15:28

Hi.

Most windows applications today display some or more text that cannot be retrieved by WinGetText.

I do know how to parse a list of controls, but still lack a method to retrieve text from it - or if the text is not included in a specific control.

By searching the web, I found that I'm not the first to ask:
https://autohotkey.com/board/topic/1740 ... ntry113024

But that thread in the old forum archive just points to an abandoned web page.

One specific example - I cannot retrieve the text that appears in windows help file (chm), neither tree view or context :silent:
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Get all text - not limited to WinGetText

19 Jan 2017, 21:40

try AccViewer:
Acc library (MSAA) and AccViewer download links - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26201

and try JEE_AccCtlGetText(hWnd),
(either as it is or try playing about with it):
GUI COMMANDS: COMPLETE RETHINK - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=25893

[EDIT:]
for the treeview, try JEE_TreeviewItemGetText, released just now:
I was finally able to make it AHK 32/64 to external 32/64 compatible, i.e. 4-way compatible.
GUI COMMANDS: COMPLETE RETHINK - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=25893

I've had problems with AccViewer on the AutoHotkey Help treeview, and on Explorer folder windows, but pretty much nothing else.

[EDIT 2:]
I said here, that, I think AutoHotkey needs to consider the following more,
and I'm doing everything within my abilities to make this happen:
Commands As Functions (Titan's/polyethene's Functions.ahk update) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=26900

- manipulate(/retrieve information from) windows/controls (i.e. more control types) (e.g. Acc.ahk, UI Automation)
- manipulate webpages directly and/or support common go-between utilities (e.g. IE/Firefox/Chrome/Edge)
- manipulate Windows desktop/folder windows (e.g. XP/Vista/7/8/10)

For the last item, I'm fine for XP/Vista/7 except that I want to be able to invoke invert selection directly not by 'alt+e, i' or by ComObjCreate("Shell.Application").Windows and Document.SelectedItems, for 8/10 I haven't used them but I wouldn't want to use the ribbon at all, so I'd want everything doable programmatically, but I might have my Windows replacement written by that stage.

[EDIT 3:]
Sometimes with treeviews, you can make them narrower (less wide) with ControlMove, hover over the item, and then get the ToolTip text.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ArkuS, Google [Bot], mikeyww and 331 guests