EyalS Posted November 30, 2016 Share Posted November 30, 2016 HI All, I'm a new to autoit, so please excuse me if this is the wrong place or ... I have a simple code I wrote using the ImageSearch UDF : #include <ImageSearch.au3> HotKeySet("p", "checkForImage") global $y = 0, $x = 0 Sleep(3000) Local $string If(checkForImage() = True) then $string = "Found it!" Else $string = "Opps !" EndIf MsgBox($MB_SYSTEMMODAL, "ImageSearch", $string, 10) Func checkForImage() Local $x, $y local $search = _Imagesearcharea(@ScriptDir & "\A.bmp", 1, 0, 0, @DesktopWidth, @DesktopHeight, $x, $y, 100) ;local $search = _ImageSearch('A.bmp', 0, $x, $y, 0) If $search = 1 Then MouseMove($x, $y, 10) Return TRUE EndIf Return False EndFunc ;==>checkForImage The issue is as follows: When I run this on a Win10 64Bit all is OK. When I run it on Win7 32Bit the script just crashes, And Yes, I had replaced the dll from 64Bit to 32Bit whn I exported my code between the PCs. Any Ideas? Thanks in advance. Eyal Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now