Game Name: Black Squad
Code: Select all
IF NOT A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%"
ExitApp
}
#SingleInstance Force
SetMouseDelay, -1
settitlematchmode, 2
coordmode, mouse, screen
coordmode, pixel, screen
SetKeyDelay,-1, 1
SetControlDelay, -1
SetWinDelay,-1
SetBatchLines,-1
The_Color:=0x7C563E
switch:=1
sx:=0
sy:=0
ex:=A_ScreenWidth
ey:=A_Screenheight
NumPad1::
Stop:=0
i:=0
While Stop = 0
{
PixelSearch, AimX, AimY,sx,sy,ex,ey, The_Color,2,Fast RGB
if !ErrorLevel
{
tx:=AimX + 5
ty:=AimY + 5
Click, %tx% %ty%
}
}
return
NumPad2::
Mousegetpos,px,py
PixelGetColor,The_Color,px,py,RGB
Return
NumPad3::
Stop:=1
Return