I am trying to setup up a auto clicker that basically click on a green square when ever it appears.
Like in this image, I want to click the dark green box. It will appear anywhere in the grid at any random time.
https://imgur.com/vFJUgRX
I also want the option to make the grid bigger or smaller and change the color.
I am trying to setup up a auto clicker that basically click on a green square when ever it appears
-
- Posts: 3
- Joined: 17 Apr 2021, 09:27
I am trying to setup up a auto clicker that basically click on a green square when ever it appears
- Attachments
-
- image.png (8.87 KiB) Viewed 487 times
-
- Posts: 3
- Joined: 17 Apr 2021, 09:27
Re: I am trying to setup up a auto clicker that basically click on a green square when ever it appears
I found this script but it isnt working can anyone help me modify it.
[Mod edit: [code][/code] tags added.]
Code: Select all
#MaxThreadsPerHotkey 2
F2:: ; Change this to any hotkey you prefer
Toggle := !Toggle
Loop {
PixelSearch, X, Y, 0, 0, A_ScreenWidth, A_ScreenHeight, 0x7A70F1 , , Fast
If ErrorLevel {
}
else {
MouseMove, %X%, %y%
Click, left
}
Sleep 100 ; Less sleep = do more often. More sleep = do less often. edit this to any value you prefer
If not Toggle
break
}
return
^esc:: ExitApp ; Change this to any hotkey you prefer
-
- Posts: 3
- Joined: 17 Apr 2021, 09:27
Re: I am trying to setup up a auto clicker that basically click on a green square when ever it appears
Here is a way to get started.
Code: Select all
#MaxThreadsPerHotkey 2
F2::
CoordMode, Pixel
CoordMode, Mouse
on := !on
While on {
Sleep, 500
PixelSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, 0x4F7A29,, Fast ; Blue, green, red
If !ErrorLevel & on
MouseClick,, x, y
}
Return
Who is online
Users browsing this forum: jellopudding and 40 guests