Hotkey with Pixelsearch loop

Ask gaming related questions
Tampleeeee
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

RButton::
   Loop
      {
	PixelSearch, Px, Py, 0, 0, 1920, 1080, 0xc14f4f,, Fast RGB 	
			click             
         If GetKeyState("RButton", "P") = 0
            Break
      }
   Return
[Mod edit: Provisional topic name added.]
Sid4G
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