Thank You in advance for any help and for this autohotkey community forum.
I tried many ways, have read docs and forum threads, but cannot make it work.
I want to make script, in which:
- if there is visible text 'alamypanel' in window:
▶ then make ''o'' execute :: MsgBox, alamypanel found
The visible text is the only thing changing between active windows in this program, so I want something like #ifwinactive but instead of checking the #wintitle to make it check if this specific 'alamypanel' text is visible in window.
I tried, but did not work:
Code: Select all
DetectHiddenText, Off
WinGetTitle, WinTitle,Alamy - User Bar
WinGetText, WinText,alamypanel
o::
MsgBox, MsgBox, alamypanel found
Code: Select all
WinGetTitle, WinTitle, Alamy - User Bar
WinGetText, visibleTextString, alamypanel
o::
MsgBox, alamypanel found
Is there a way to make the visible text detection just like with #ifwinactive?
Much much gratitude for any help with script, because I cannot find the proper line for that.
Thank You,
Andy