Please guys I need your help
Im still a noob about scripting. So I want to make a script that can quickly auto move my cursor to specific color, and then LEFT CLICK IT.
Im very thankful if guys can help me to create the script.
-Thanks before
Script to auto move cursor to specific color and auto CLICK IT LIKE CRAZYYY
-
- Posts: 2
- Joined: 21 Apr 2021, 08:02
Re: Script to auto move cursor to specific color and auto CLICK IT LIKE CRAZYYY
Code: Select all
PixelSearch, x, y, 0, 0, 500, 500, 0xFFFFFF,, Fast
If !ErrorLevel
MouseClick,, x, y
-
- Posts: 2
- Joined: 21 Apr 2021, 08:02
Re: Script to auto move cursor to specific color and auto CLICK IT LIKE CRAZYYY
Excuse me, Im really sorry but how to use it ? So the color I want to click is 0x00FF00, I've already change it anyway, but still not working, can you guide me please ?mikeyww wrote: ↑21 Apr 2021, 09:04Explained: PixelSearch • MouseClickCode: Select all
PixelSearch, x, y, 0, 0, 500, 500, 0xFFFFFF,, Fast If !ErrorLevel MouseClick,, x, y
This is my script anyway :
Code: Select all
!,::
PixelSearch, x, y, 0, 0, 500, 500, 0x00FF00,, Fast
If !ErrorLevel
MouseClick,, x, y
return
Re: Script to auto move cursor to specific color and auto CLICK IT LIKE CRAZYYY
If you believe that the color exists in the specified range, use MouseMove to move to that individual coordinate, and PixelGetColor to find the color. Display the color so that you can confirm it. Display the ErrorLevel from the PixelSearch, to understand whether the search succeeded. My earlier post provides links to the documentation, which includes examples for each command.