Jump to content

Recommended Posts

Posted

Hello guys!

I have a problem. I need to scan about 40 images within 3 to 2 seconds. The program goes on a loop and scans the images one by one then it outputs the name of the picture. I don't know which picture might pop out. I use ImageSearch Algorithm. The problem is its not fast enough and takes about 5 to 4 seconds to scan all the images. I thought about using Multithreading and using 2 threads. one thread would scan form the begining and the other would scan from the end. But there is no multithreading in auto it. so is there a solution to the problem? 

I store the pictures names in array. 

this is the code 

_CaptureRegion()
  
Local $aPathSplit
Local $sDrive = "", $sDir = "", $sFileName = "", $sExtension = ""
Local $EndLoop = UBound ( $games ,$UBOUND_DIMENSIONS =0)
;cs
 for $i = 0 to $EndLoop-1
If BotCommand() Then btnStop()
   If _ImageSearchArea($games[$i],  0,0,0,0,0, $x, $y, 0) Then
      $aPathSplit =_PathSplit($games[$i], $sDrive, $sDir, $sFileName, $sExtension)
      SetLog("recognized: " & $aPathSplit[3] )

      ExitLoop

   EndIf

Note: the values are set to 0,0,0,0,0 to simulate the fastest searching possible 

Thanks

  • Moderators
Posted

TheShaps,

It seems you still have not read the Forum rules to which we keep linking you. This is so obviously a game launcher:

  Quote

$games

You are becoming annoying - next time you go for good.

M23 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...