
AutoDEV
Active Members-
Posts
72 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
AutoDEV's Achievements

Wayfarer (2/7)
0
Reputation
-
Multiple result with ImageSearch library
AutoDEV replied to AutoDEV's topic in AutoIt General Help and Support
Hello. I up my post because i need help. I very need know how to make. I want count image found and know how to go to next image found. If you want more info ask me please. imagesearsh is here : -
My final code can be : If _IsChecked($win32) Then $win32 = "checked" If _IsChecked($win64) Then $win64 = "checked" If _IsChecked($linux) Then $linux = "checked" If _IsChecked($other) Then $other = "checked" Dim $arr[4][2] = [["win32", $win32], ["win64", $win64], ["linux", $linux], ["other", $other]] Global $fFile = "/OsList/os.txt" If IsArray($arr) Then IniWriteSection($fFile, "OS", $arr, 0) ExitLoop EndIf ?
-
THX. I have one question.My for is required ? And your code is a best like my code ?
-
Thank you. Now i have one other problem. I have this : If _IsChecked($win32) Then $win32 = "checked" If _IsChecked($win64) Then $win64 = "checked" If _IsChecked($linux) Then $linux = "checked" If _IsChecked($other) Then $other = "checked" Dim $arr[4][2] = [["win32", $win32], ["win64", $win64], ["linux", $linux], ["other", $other]] Global $fFile = "/OsList/os.txt" IniWriteSection($fFile, "OS", "") If IsArray($arr) Then For $i = 0 to UBound($arr) - 1 ; ConsoleWrite($arr[$i][0] & ":" & $arr[$i][1] & @LF) FileWriteLine($fFile, $arr[$i][0] & "=" & $arr[$i][1]) Next ExitLoop EndIf How ty make more easy for create section and key plz.
-
Hello, i have this code : Global $fFile = "Configs\" & $Config FileWriteLine($fFile, "COMPILE=" & $os) Why my text is write on line 1 and not on end line ? Thank you
-
Hello i search one picture on my screen and i found multiple result. How can i make if first image is not good to try next image ? $checkimg = _ImageSearch("IMG/true.jpg", 1, 140) If IsArray($checkimg) Then MsgBox(0, '', 'image is wrong go to next') ;How to ttry other image here ? EndIf Thank you
-
Musashi reacted to a post in a topic: PRoblem with image search
-
SOLVE-SMART reacted to a post in a topic: PRoblem with image search
-
Hello, I have this code : While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $close, $btnClose MsgBox(0, '', "exit ok") Exit Case Else $checkclose = _WaitForImageSearch("IMG/Close.jpg", 40, 1, 150, 0) EndSwitch WEnd Please my problem is easy, how to close windows before a image is found and finish to wait 40s. Since 2 or 3 years i search how to make Thank you
-
hello Where is break in switch ? My problem is, he searchj all case and i need stop to search when i have found 1 image I have never use Continueloopa ContinueCase. I have edit code. Local $pic1 = "test1.png" $pics= searchIMG("pic1.png") Func _searchIMG($img) Select Case 'pic1.png' $pic1 = _ImageSearch(@ScriptDir & "/IMG/BUTTON/pic1.png" 1, 100) If IsArray($pic1) Then MsgBox(0, '', 'img 1 found') EndIf Case 'pic2.png' $pic2 = _ImageSearch(@ScriptDir & "/IMG/BUTTON/pic2.png", 1, 100) If IsArray($pic2) Then MsgBox(0, '', 'img 2 found') EndIf EndSelect EndFunc
-
Hello. I not understand. $sImage can have one value. My exemple i have 4 different pictures. How to make plz.
-
In one programme i want search one picture. I need shoose a zone and not searching in all windows. I can't give more help. I need help plz
-
Musashi reacted to a post in a topic: Found one image in windows
-
SOLVE-SMART reacted to a post in a topic: Found one image in windows
-
Hello I need this : But how to add exe and not GUI for search in one image. Thank you
-
Hello, i search how found one image in one windows. My application name is calc.exe and size 1024* 768 px I try to found image : number1.png Please can you help me, im blocked and can't continue to work in my project. TY
-
Hello. My problem is : I need exit select if i have found one imqge. Like Break in php. TY
-
Hello I have hesitate to use while, elseif or switch or select I have make this script. Local $pic1 = "test1.png" Local $pic2 = "test2.png" Local $pic3 = "test3.png" Local $pic4 = "test4.png" Func _searchIMG() Select Case 'pic1.png' $pic1 = _ImageSearch(@ScriptDir & "/IMG/BUTTON/pic1.png" 1, 100) If IsArray($pic1) Then MsgBox(0, '', 'img 1 found') EndIf Case 'pic2.png' $pic2 = _ImageSearch(@ScriptDir & "/IMG/BUTTON/pic2.png", 1, 100) If IsArray($pic2) Then MsgBox(0, '', 'img 2 found') EndIf Case 'pic3.png' $pic3 = _ImageSearch(@ScriptDir & "/IMG/BUTTON/pic3.png", 1, 100) If IsArray($pic3) Then MsgBox(0, '', 'img 3 found') EndIf Case 'pic4.png' $pic4 = _ImageSearch(@ScriptDir & "/IMG/BUTTON/pic4.png", 1, 100) If IsArray($pic4) Then MsgBox(0, '', 'img 4 found') EndIf EndSelect Return $searchShip EndFunc When i have found one pictures i want exit select. Can you help me please ? TY
-
Thank you. Working, i have make like you but i have forgot to add #include <ButtonConstants.au3>. For Can you help me to stop a program when searching image is searching ? Very big thank you