Detecting Chrome notification box

Get help with using AutoHotkey and its commands and hotkeys
BIGZIPZ
Posts: 2
Joined: 02 Aug 2020, 12:49

Detecting Chrome notification box

09 Aug 2020, 13:07

I have a Chrome extension which pops a box up when a website finishes loading (see attached image). I am trying to detect if that window is active with a simple piece of code to display a message box if the window is active. But when I use Windows Spy it shows up as the same information as Google Chrome itself. This is the simple code I have;

if WinExist("ahk_class Chrome_WidgetWin_1")
msgbox hi
return

But since the Windows Spy information is the same for the main Chrome window itself AND the extension popup it messages all the time.

How can I detect if my little box is active and display a simple msgbox ?
Attachments
Annotation 2020-08-09 190103.png
Annotation 2020-08-09 190103.png (12.02 KiB) Viewed 471 times
User avatar
submeg
Posts: 91
Joined: 14 Apr 2017, 20:39
GitHub: submeg

Re: Detecting Chrome notification box

09 Aug 2020, 15:31

With Window Spy, does it show the pop up as having a title?
____________________________________
Check out my site, submeg.com
Connect with me on LinkedIn
Courses on AutoHotkey :ugeek:

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], boiler, EffinFail, Google [Bot], jadams and 59 guests