Jump to content

Khetti

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Khetti

  1. Probably so, but I didnt get an error so I must have looked over it. I'll see if that helps, if not then I will have to start over.
  2. Having the same shade variation is fine, just as long as I can search both red and blue. I'll look into it, thanks! EDIT: Ok, heres what I have so far: $pixelr = pixelsearch(-400, 300, 400, -300, 0x110000, 255, 24) $pixelb = pixelsearch(-400, 300, 400, -300, 0x000011, 255, 24) If $pixelr = (0,0) then mousedown("left") sleep 10 mouseup("left") soundplay("C:\WINDOWS\Media\Windows XP Default.wav") endif If $pixelb = (0,0) then mousedown("left") sleep 10 mouseup("left") soundplay("C:\WINDOWS\Media\Windows XP Default.wav") endif But it doesnt seem to work... What I am trying to get is to have it mousedown for a brief moment when a blue or red pixel is under the mouse (which is always at 0,0) I am probably overlooking something simple, but if you could take a look at it I would appreciate it.
  3. I am currently just messing around in AutoIt, and I have a question about a script I am making. The script is supposed to leftclick at 0,0 when the pixel at 0,0 is either blue or red. My question is wether or not I can have it click for every shade of red or blue. Heres some of what I have so far: $pixel = pixelgetcolor(0,0) $hexpx = hex($pixel, 6) If $hexpx = (0xff0000) then mousedown("left") sleep 10 mouseup("left") soundplay("C:\WINDOWS\Media\Windows XP Default.wav") endif If $hexpx = (0x0000ff) then mousedown("left") sleep 10 mouseup("left") soundplay("C:\WINDOWS\Media\Windows XP Default.wav") endif I havent even tested it yet () but what I need is for the If $hexpx = (0x0000ff) then To be a range, from say (0x000022) to (0x0000ff), instead of the fixed "Completely Blue" thing thats goin on now. Can someone explain to me how to do this?
×
×
  • Create New...