I'm a n00b to AutoHotKey, and I see it's usefulness in automating software installations to make them silent.
I'm trying to have an AHC script that clicks through this Firewall window. I've tried a number of combinations but with no luck. Ultimately, I just need the script to simulate clicking 'Allow Access' on the Windows Security Alert screen.
I'm getting stuck on ControlClick (I think its the best command for this job?). I don't see it ever sending any clicks to the window.
Here is my script:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#NoTrayIcon
;#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Persistent
SetControlDelay, -1
WinWaitActive Windows Security Alert ahk_class #32770 ahk_exe rundll32.exe
if ErrorLevel
{
MsgBox, Timed out.
return
}
else
Send !a
ControlClick, &Allow access, Windows Security Alert,,,, NA
Imgur: https imgur.com /a/26OkdLN
Can anyone offer some suggestions as to what I might be doing wrong to click 'Allow access' on this window?