CT83

Cant find an Image using ImageSearch

27 posts in this topic

#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

Share this post


Link to post
Share on other sites



running windows dark theme classsic

Share this post


Link to post
Share on other sites

the image i am trying to find

is.bmp

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

it is the top of vlc media player icon ? is it just me ? my script?

Share this post


Link to post
Share on other sites

Nope no luck

Share this post


Link to post
Share on other sites

Yeah looks like it just doesnt wanna run imagesearch for some reason!

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Try to remove:

While 1
    Sleep(10)
WEnd

Share this post


Link to post
Share on other sites

Ok I will try n report.... :)

Share this post


Link to post
Share on other sites

Cld someone see if my script works on ur PC or just send me an example imagesearch scripts made by u?

 

Share this post


Link to post
Share on other sites

i used the one from 

i am on 64bit PC bt i have autoit  installed in programfilesx86 , so i used 32 bit

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.