Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #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.
#SingleInstance Force
^q::
Loop
{
PixelGetColor, Color, 1100, 750
If Color != 0x545160
{
Click down, 850,350
Sleep 50
Click up
Click down, 1290, 447
Sleep, 2500
Click up
Sleep, 250
Click down, 850,350
Sleep 50
Click up
}
return
F2::Break
}
Send ^q