I was using the script below to try and get the path from an explorer window. Turns out it only works if I've already clicked inside the path bar before triggering the script.
Code: Select all
#IfWinActive, ahk_class CabinetWClass
!+q::
ControlGetText, f_text, Edit1 ; get the path
if(ErrorLevel)
MsgBox, Error
else
MsgBox, %f_text%
#IfWinActive
Appreciate any insights!
[Mod edit: Added provisional topic name.]