CT83 Posted March 10, 2016 Share Posted March 10, 2016 #include <imagesearch.au3> HotKeySet("{ENTER}","_func1") $x = "230" $y = "97" While 1 Sleep(10) WEnd Func _func1() Do $search = _imagesearch(@scriptdir & "is.bmp",1,$x,$y,500) Until $search = 1 MouseClick("left",$x,$y) EndFunc Cant find an image using this code ! No errors or an anything, the image was taken using prntscreen- paint method dlls installed, everything copy pasted, and imagesearch.au3 in workingdir too Link to comment Share on other sites More sharing options...
JohnOne Posted March 10, 2016 Share Posted March 10, 2016 Change theme to some basic one, to rule out aero glass type thing. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 running windows dark theme classsic Link to comment Share on other sites More sharing options...
JohnOne Posted March 10, 2016 Share Posted March 10, 2016 crop image to even number of pixels on both x and y AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 the image i am trying to find is.bmp Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 1 minute ago, JohnOne said: crop image to even number of pixels on both x and y is it possible in paint?n do u have images or examples of imagesearch scripts i cld try running? Link to comment Share on other sites More sharing options...
JohnOne Posted March 10, 2016 Share Posted March 10, 2016 never mind it already is even. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 it is the top of vlc media player icon ? is it just me ? my script? Link to comment Share on other sites More sharing options...
JohnOne Posted March 10, 2016 Share Posted March 10, 2016 try lower the tolerance to 0 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted March 10, 2016 Share Posted March 10, 2016 $search = _imagesearch(@scriptdir & "\is.bmp",1,$x,$y,500) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 Nope no luck Link to comment Share on other sites More sharing options...
JohnOne Posted March 10, 2016 Share Posted March 10, 2016 No luck adding the backslash to path? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 Yeah looks like it just doesnt wanna run imagesearch for some reason! Link to comment Share on other sites More sharing options...
crackdonalds Posted March 10, 2016 Share Posted March 10, 2016 one thing is for sure:$search = _imagesearch(@scriptdir & "is.bmp",1,$x,$y,500) Should be:$search = _imagesearch(@scriptdir & "\is.bmp",1,$x,$y,500) Link to comment Share on other sites More sharing options...
crackdonalds Posted March 10, 2016 Share Posted March 10, 2016 Try to remove: While 1 Sleep(10) WEnd Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 Ok I will try n report.... Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 Cld someone see if my script works on ur PC or just send me an example imagesearch scripts made by u? Link to comment Share on other sites More sharing options...
JohnOne Posted March 10, 2016 Share Posted March 10, 2016 I believe there are many versions of the dll, which exact one do you have and whaere did you get it from? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
CT83 Posted March 10, 2016 Author Share Posted March 10, 2016 i used the one from i am on 64bit PC bt i have autoit installed in programfilesx86 , so i used 32 bit Link to comment Share on other sites More sharing options...
crackdonalds Posted March 10, 2016 Share Posted March 10, 2016 yea i tested it on windows 7. doesn't work. tried it with another image and exactly as done in the official examples but no luck. Link to comment Share on other sites More sharing options...
Recommended Posts