Auto press enter on popup

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
foguetes
Posts: 19
Joined: 19 Oct 2018, 04:58

Auto press enter on popup

10 Oct 2019, 05:00

I'm trying to create a script that automatically presses the enter key when a window pops up.

This is the window:

FEbCg9D.png
FEbCg9D.png (6.89 KiB) Viewed 1314 times

It has the following properties:

TrA139s.png
TrA139s.png (2.77 KiB) Viewed 1314 times

This is my attempt:

Code: Select all

#Persistent
SetTitleMatchMode, 2

#If WinActive("ahk_class #32770")
Send, {Enter}

return



Am I going in the right direction?
Rohwedder
Posts: 7768
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Auto press enter on popup

10 Oct 2019, 06:20

Hallo,
try:

Code: Select all

#Persistent
SetTitleMatchMode, 2
SetTimer, popups, 500
popups:
If WinActive("After Effects ahk_class #32770")
	Send, {Enter}
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 352 guests