Page 1 of 1

statusBarGetText windows explorer

Posted: 16 Sep 2021, 16:08
by zuzu_kuc
Hi,
i can't find solution how to get text from statusBar in explorer, window Spy can't see any text :/
my goal is to find if result of searching is 0 or not any helps?

Thanks!!

Re: statusBarGetText windows explorer

Posted: 17 Sep 2021, 00:24
by Rohwedder
Hallo,
with StatusBarGetText it did not work here. However with ControlGetText:

Code: Select all

q::
ControlGetText, Text, msctls_statusbar322
, ahk_class CabinetWClass ahk_exe Explorer.EXE
MsgBox,% Text
Return

Re: statusBarGetText windows explorer

Posted: 17 Sep 2021, 01:25
by Xtra
StatusBarGetText

Code: Select all

StatusBarGetText, txt, 1, ahk_class IEFrame ahk_exe iexplore.exe
MsgBox % txt
Make sure your statusbar is visible.

Re: statusBarGetText windows explorer

Posted: 17 Sep 2021, 05:39
by zuzu_kuc
it is not about IExplorer, but standard windows file explorer. Result from 1. script is still empty :/
image.png
image.png (17.03 KiB) Viewed 751 times

Re: statusBarGetText windows explorer

Posted: 17 Sep 2021, 05:52
by mikeyww
It did not work here, and my Internet search came up blank!

Re: statusBarGetText windows explorer

Posted: 17 Sep 2021, 10:12
by Xtra
Sorry i read Explorer as Exploder :lol: both suck

Try using Acc it should be able to get it.

Re: statusBarGetText windows explorer  Topic is solved

Posted: 18 Sep 2021, 21:06
by mikeyww

Code: Select all

#Include d:\utils\acc\Acc.ahk ; https://gist.github.com/tmplinshi/43279b05289a2571a63372e032f662cf
WinGet, hCtl, ID, ahk_class CabinetWClass
oAcc1 := Acc_Get("Object", "4.6.4.1.4.1.4.1.1.1.1", 0, "ahk_id " hCtl)
oAcc2 := Acc_Get("Object", "4.6.4.1.4.1.4.1.1.2.1", 0, "ahk_id " hCtl)
MsgBox, 64, File Explorer, % ttext := oAcc1.accName(0) ", " oAcc2.accName(0)

Re: statusBarGetText windows explorer

Posted: 21 Sep 2021, 17:56
by zuzu_kuc
mikeyww wrote:
18 Sep 2021, 21:06

Code: Select all

#Include d:\utils\acc\Acc.ahk ; https://gist.github.com/tmplinshi/43279b05289a2571a63372e032f662cf
WinGet, hCtl, ID, ahk_class CabinetWClass
oAcc1 := Acc_Get("Object", "4.6.4.1.4.1.4.1.1.1.1", 0, "ahk_id " hCtl)
oAcc2 := Acc_Get("Object", "4.6.4.1.4.1.4.1.1.2.1", 0, "ahk_id " hCtl)
MsgBox, 64, File Explorer, % ttext := oAcc1.accName(0) ", " oAcc2.accName(0)
Boss like always :)
Thank you!!