Hotkey with Pixelsearch loop

Ask gaming related questions
Posts: 19
Joined: 12 Oct 2019, 03:25

Hotkey with Pixelsearch loop

29 Oct 2019, 12:05

Hello everyone, I have a code, it searches for a pixel and presses one key, but I need it so that when I clamp the right mouse button, it searches all the time for this pixel color. I mean, I press the right mouse button and all this time, while it is clamped, it searches for the pixel I need .Please help, I will be very grateful

Code: Select all

	PixelSearch, Px, Py, 0, 0, 1920, 1080, 0xc14f4f,, Fast RGB 	
         If GetKeyState("RButton", "P") = 0
[Mod edit: Provisional topic name added.]
Posts: 49
Joined: 02 Apr 2016, 19:11

Re: Hotkey with Pixelsearch loop

29 Oct 2019, 14:05

Not sure what are you asking for. Your current script searches for pixel and clicks regardless of the result hundreds of times per second. It already does what you ask

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 52 guests