CT83 Posted March 10, 2016 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
JohnOne Posted March 10, 2016 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.
JohnOne Posted March 10, 2016 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.
CT83 Posted March 10, 2016 Author 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?
JohnOne Posted March 10, 2016 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.
CT83 Posted March 10, 2016 Author Posted March 10, 2016 it is the top of vlc media player icon ? is it just me ? my script?
JohnOne Posted March 10, 2016 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.
JohnOne Posted March 10, 2016 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.
JohnOne Posted March 10, 2016 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.
CT83 Posted March 10, 2016 Author Posted March 10, 2016 Yeah looks like it just doesnt wanna run imagesearch for some reason!
crackdonalds Posted March 10, 2016 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)
CT83 Posted March 10, 2016 Author 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?
JohnOne Posted March 10, 2016 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.
CT83 Posted March 10, 2016 Author 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
crackdonalds Posted March 10, 2016 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.
Recommended Posts