Jump to content

undefinedspace

Members
  • Posts

    12
  • Joined

  • Last visited

Reputation Activity

  1. Like
    undefinedspace reacted to bootybay in Best method to test area for color   
    PixelSearch is using an DEC value as color afaik. But yours is HEX.
    #include <Debug.au3> _DebugSetup() call(testpixelsearch()) Func testpixelsearch() Local $aarray = MouseGetPos() Local $color = PixelGetColor($aarray[0], $aarray[1]) Local $shadecycle = 1 Do PixelSearch($aarray[0] - 5, $aarray[1] - 5, $aarray[0] + 5, $aarray[1] + 5, $color, $shadecycle) If @error = 0 Then ExitLoop $shadecycle += 1 Until 1 _DebugOut($shadecycle & ", " & $color & ", " & $aarray[0] & ", " & $aarray[1]) EndFunc ;==>testpixelsearch This works like a charm for me. Always on the first shadecycle whereever my mouse hovering over.
  2. Like
    undefinedspace reacted to junkew in Best method to test area for color   
    search in the forum for keywords like:
    findbmp 
    imagesearch
    bmpsearch
    bitblt
    gdi
    opencv
    exact pixelmatching: '?do=embed' frameborder='0' data-embedContent>>
  3. Like
    undefinedspace reacted to Melba23 in notification that does not pause script?   
    undefinedspace,

    You could look at my Notify UDF (the link is in my sig) or perhaps Yashied's NotifyBox. Or just use ConsoleWrite.

    M23
  4. Like
    undefinedspace reacted to Danp2 in notification that does not pause script?   
    You could use ConsoleWrite. Also take a look at _DebugSetup and the related commands.
  5. Like
    undefinedspace reacted to Melba23 in second optional var in my udf   
    undefinedspace,
     

    That is because you do not try to access $a in the script. Add a line which does and you will see that the error happens on that line:
    HotKeySet("!a", "funca") While 1 Sleep(10) WEnd Func funca($a = 20, $b = 100000) $a += 1 $b = $b - 1 EndFunc ;==>funca M23
×
×
  • Create New...