Jump to content

undefinedspace

Members
  • Posts

    12
  • Joined

  • Last visited

undefinedspace's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. The entry for PixelSearch still needs to be updated. Either it has some gimmicks not noted in helpfile or it just does not work. Manadar 's pixelget gets 350 pixel a second. Now to figure out _rgb.
  2. Edit: delete. BrewManNH was right. excuse me.
  3. #include <Debug.au3> _DebugSetup() call(testpixelsearch()) Func testpixelsearch() Local $aarray = MouseGetPos() Local $color = hex( PixelGetColor($aarray[0], $aarray[1])) Local $shadecycle = 1 Do _DebugOut($shadecycle & ", " & $color & ", " & $aarray[0] & ", " & $aarray[1]) PixelSearch($aarray[0] - 50, $aarray[1] - 50, $aarray[0] + 50, $aarray[1] + 50, $color, $shadecycle) ;If @error = 0 Then ExitLoop $shadecycle += 1 Until 1 _DebugOut($shadecycle & ", " & $color & ", " & $aarray[0] & ", " & $aarray[1]) EndFunc ;==>testpixelsearch when exitloop line is commented until still runs only once. need something like until (false) then everything except pixelsearch works like planned. junkew helped but in the end all was solved by googlefu.
  4. Thanks BB. Two programing tips AND your code works perfect! Why? Its not the hex. While we wait for me to come up with new and exciting bizarre behavior, is there any way to get '?do=embed' frameborder='0' data-embedContent>> FastFind installed in Autoit properly or should i just keep a copy of everything in a folder with each new script? '?do=embed' frameborder='0' data-embedContent>> worked too. Edit: BB is wrong. im stupid for not checking right away
  5. First link:http://www.autoitscript.com/forum/index.ph...=pixelchecksum) does not work.
  6. #include <Debug.au3> _DebugSetup() call(testpixelsearch()) Func testpixelsearch() local $aarray= MouseGetPos() local $color= hex(PixelGetColor($aarray[0] , $aarray[1])) local $shadecycle=1 while (0=PixelSearch($aarray[0]-5,$aarray[1]-5,$aarray[0]+5,$aarray[1]+5,$color,$shadecycle)) $shadecycle=$shadecycle+1 _DebugOut($shadecycle & ", " & $color & ", " & $aarray[0] & ", " & $aarray[1]) WEnd Endfunc Sometimes finds in one iteration sometimes in 40 sometimes in 249. Anything wrong with my code? How does pixelsearch work exactly? Same color gets same results.
  7. For any window that resizes internal content I could only figure out a way to test with getpixelcolor() that was unreliable. I am sure this is a common problem.
  8. I need a better PixelGetColor(). Something that tests an area rather than one pixel and some shades different than said color. Is PixelSearch() If not @error then the best way? using @error like this wont break something?
  9. How to do it best? I am mostly going to use this for debuging.
  10. But $a causes no errors and both parameters are optional.
  11. Hi. But $a causes no errors and both parameters are optional. Using globals would require 2 vars. I could call the real function from a different one that sets the parameters.
  12. HotKeySet("!a", "funca") func funca($a=20,$b=100000) $b=$b-1 Error! when hotkeyed, var used without being declared! func funca($a=20,$b=100000) local $b Error! when f5 go, already declared as a parameter var and func names changed
×
×
  • Create New...