From 68f8f986cc44290354dba76a7ecd4651c102f91f Mon Sep 17 00:00:00 2001 From: Nico Sap Date: Tue, 12 Dec 2017 09:52:57 +0100 Subject: [PATCH] Spaces before ByRef Fixes the issues with the RegEx in autoIt v3 for compilation --- ImageSearchDLL/ImageSearch.au3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ImageSearchDLL/ImageSearch.au3 b/ImageSearchDLL/ImageSearch.au3 index 9644684..8fcfe74 100644 --- a/ImageSearchDLL/ImageSearch.au3 +++ b/ImageSearchDLL/ImageSearch.au3 @@ -30,11 +30,11 @@ ; a desktop region to search ; ;=============================================================================== -Func _ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance, $HBMP=0) +Func _ImageSearch($findImage,$resultPosition, ByRef $x, ByRef $y,$tolerance, $HBMP=0) return _ImageSearchArea($findImage,$resultPosition,0,0,@DesktopWidth,@DesktopHeight,$x,$y,$tolerance,$HBMP) EndFunc -Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance,$HBMP=0) +Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom, ByRef $x, ByRef $y, $tolerance,$HBMP=0) ;MsgBox(0,"asd","" & $x1 & " " & $y1 & " " & $right & " " & $bottom) If IsString($findImage) Then @@ -83,7 +83,7 @@ EndFunc ; ; ;=============================================================================== -Func _WaitForImageSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance,$HBMP=0) +Func _WaitForImageSearch($findImage,$waitSecs,$resultPosition, ByRef $x, ByRef $y,$tolerance,$HBMP=0) $waitSecs = $waitSecs * 1000 $startTime=TimerInit() While TimerDiff($startTime) < $waitSecs @@ -118,7 +118,7 @@ EndFunc ; ; ;=============================================================================== -Func _WaitForImagesSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance,$HBMP=0) +Func _WaitForImagesSearch($findImage,$waitSecs,$resultPosition, ByRef $x, ByRef $y,$tolerance,$HBMP=0) $waitSecs = $waitSecs * 1000 $startTime=TimerInit() While TimerDiff($startTime) < $waitSecs