Jump to content

HomeScript

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by HomeScript

  1. I have problem with this #include <file.au3> #include "BmpSearch.au3" Global $Bmp1 = FileOpen(@ScriptDir & "\CALCULATOR.BMP") Global $Bmp2 = FileOpen(@scriptDir & "\BACKSPACE.BMP") Local $aCords = _BmpSearch($Bmp1, $Bmp2)Error: Variable must be of type "Object".: Local $iRowInc = ($tSizeSource.X - $tSizeFind.X) * 4 Local $iRowInc = ($tSizeSource^ ERROR
  2. Is there another code to search bitmap in bitmap? Edit: I fixed this, but how to get x, y axis? My code: #include <GDIPlus.au3> #Include <ScreenCapture.au3> #include <string.au3> #include <BmpSearch.au3> $bDebug = False Const $cMatchLinePercentage=0.99 const $c24RGBFullMatch=1 ;Load as 24 bits and full match const $c24RGBPartialMatch=2 ;Load as 24 bits and partial match const $c16RGBFullMatch=3 ;Load as 16 bits and full match const $c16RGBPartialMatch=4 ;Load as 16 bits and partial match Global const $Bitmap1Filename = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\CALCULATOR.BMP") Global Const $Bitmap2Filename = _GDIPlus_ImageLoadFromFile(@scriptDir & "\BACKSPACE.BMP") findTester($Bitmap1Filename,$Bitmap1Filename,$c24RGBPartialMatch) Func FindTester($BMP1, $BMP2, $Bool) local $tResult _GDIPlus_Startup () $start = TimerInit() $tResult=findBMP($BMP1,$BMP2, $Bool) ConsoleWrite($tResult) EndFunc _GDIPlus_Shutdown()
  3. Hi, I want to search BMP in another BMP using this function: I have "Error locking screen 1". My code: $BMP1 = @ScriptDir & "\scrdbg.bmp" $BMP2 = @ScriptDir & "\tru.bmp" findBMP($BMP1,$BMP2, 1)
  4. Hi! I want to get control handle without ControlID. $hnd = ControlGetHandle("MacromediaFlashPlayerActiveX", "", "")Result = 0x000000 $hnd = ControlGetHandle("[CLASS:MacromediaFlashPlayerActiveX; INSTANCE:1]", "", "")Result = 0x000000
  5. How do I set not to show errors?
  6. <mycolor> is my color code (0xDC7F00).
  7. I got error with this: $result = FFNearestSpot(0, 1, 1, 0, <mycolor>, True, $x[0], $y[0], $x[1], $y[1])
  8. This is web browser with Flash Player. Bot is looking for objects (PixelSearch and imageSearch), if they do not find transferred to another place in the game.
  9. Yes, I write bot. I would like to add to it a function of background. My bot uses ImageSearch and PixelSearch.
  10. Hi! I met some bots that click in pixel on a minimized window. How it working? PixelSearch in background? Sorry for my bad English.
×
×
  • Create New...