the script is totally lagging like really lag
this is the script
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
#MaxThreadsPerHotkey 2
loop
{
;sarn1
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 1410, 695, 1648, 908, *25 sarn1.png
If ErrorLevel = 0
{
Click, %FoundX%, %FoundY% Left, 1
sleep, 2000
}
}
}
[Mod edit: Moved topic to AHK v1 help, since this is not v2 code.]