Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn All, StdOut ; 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.
Run, www.google.com
WinWait, ahk_class MozillaWindowClass
Sleep, 1000
WinMaximize, ahk_class MozillaWindowClass
Sleep, 1000
ControlClick, MozillaCompositorWindowClass1, ahk_class MozillaWindowClass,, Left, 1, x1751 y71 NA
Sleep, 1000
WinWait, ahk_class MozillaDialogClass
Sleep, 1000
ControlClick, MozillaCompositorWindowClass1, ahk_class MozillaDialogClass,, Left, 1, x292 y260 NA
Sleep, 1000
ControlClick, MozillaCompositorWindowClass1, ahk_class MozillaDialogClass,, Left, 1, x41 y180 NA
Sleep, 1000
What am I missing here?