TheShaps Posted July 17, 2015 Share Posted July 17, 2015 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 EndIfNote: the values are set to 0,0,0,0,0 to simulate the fastest searching possible Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 17, 2015 Moderators Share Posted July 17, 2015 TheShaps,It seems you still have not read the Forum rules to which we keep linking you. This is so obviously a game launcher:$gamesYou are becoming annoying - next time you go for good.M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts