chrome.ahk - how to interact with alert popup window directly

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
maludroid
Posts: 1
Joined: 22 Apr 2021, 01:24

chrome.ahk - how to interact with alert popup window directly

22 Apr 2021, 01:57

Hi,

My first post here. Thanks for many advices I've read before signing in. Now to the point:

I am using chrome.ahk to interact with webpages in Chrome. So far so good. But I got to the point, where chrome shows this popup window:
.
ahk popup.png
ahk popup.png (174.5 KiB) Viewed 912 times

I know I can simulate globally hitting an ENTER key, but I'd like to talk directly to this popup window.
Using the script to show window list I didn't find it to be a separate window:

Code: Select all

#Persistent
SetTimer, WatchActiveWindow, 1000
return

WatchActiveWindow:
WinGet, ControlList, ControlList, A
ToolTip, %ControlList%
return
Do you know how to interact directly with that window? Either by chrome.ahk, windows or other way?
Thanks for help in advance.
AHK_user
Posts: 515
Joined: 04 Dec 2015, 14:52
Location: Belgium

Re: chrome.ahk - how to interact with alert popup window directly

24 Apr 2021, 04:11

This is possible a prompt message, then you could use the following method.

I would advise you to read this forum discussion regarding Chrome.ahk:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=42890&start=400#p391674
page 20, the answer of Burque505 is quite a nice example.
But this only gets to detect the message and to get the content. for pressing the OK button, the only solution for now is to use SendInput.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Google [Bot] and 310 guests