[Autoit] Imagesearch findet keine Images

12/11/2019 00:23 Utopia25#1
Hallo,

ich bin derzeit am probieren einen einfachen Klickbot zu programmieren. Nur leider bekomm ich es nicht hin, dass Imagesearch die angegebenen Images findet und auch dan anschließend klickt. Ich habe echt keine Idee mehr wo das Problem liegt obwohl das Script sehr simpel ist. Ich habe auch sachon alle Imagesearch.dll ausprobiert, ImageSearchDLLx32.dll, ImageSearchDLLx64.dll und die alternativen Dlls von 2010, nichts davon funktioniert, so dass er die Images findet.


Mein Code:

Code:
$image = "C:\Users\test\Desktop\test.png"

$x=0
$y=0

$variable = _ImageSearch($image, 1, $x, $y, 0)

If $variable = 1 Then
  MouseMove($x, $y)
  Sleep (1000)
  MouseClick("left", $x, $y)
Endif
Hat wer eine Idee wo das Problem liegen könnte?

Mfg
12/11/2019 02:22 elmarcia#2
Quote:
Originally Posted by Utopia25 View Post
Hallo,

ich bin derzeit am probieren einen einfachen Klickbot zu programmieren. Nur leider bekomm ich es nicht hin, dass Imagesearch die angegebenen Images findet und auch dan anschließend klickt. Ich habe echt keine Idee mehr wo das Problem liegt obwohl das Script sehr simpel ist. Ich habe auch sachon alle Imagesearch.dll ausprobiert, ImageSearchDLLx32.dll, ImageSearchDLLx64.dll und die alternativen Dlls von 2010, nichts davon funktioniert, so dass er die Images findet.


Mein Code:

Code:
$image = "C:\Users\test\Desktop\test.png"

$x=0
$y=0

$variable = _ImageSearch($image, 1, $x, $y, 0)

If $variable = 1 Then
  MouseMove($x1, $y1)
  Sleep (1000)
  MouseClick("left", $x1, $y1)
Endif
Hat wer eine Idee wo das Problem liegen könnte?

Mfg
Take a closer look at your variable names please :rolleyes: $x1 != $x // $y1 ...
12/11/2019 11:55 Utopia25#3
Oh yeah, my mistake, it was a old edit, i tried before also, and now again, same problem...
No image found and no move and click...
12/11/2019 14:36 elmarcia#4
Quote:
Originally Posted by Utopia25 View Post
Oh yeah, my mistake, it was a old edit, i tried before also, and now again, same problem...
No image found and no move and click...
Mine is working, im using windows 10, maybe your image is too big or has transparency, image search doesn't work well with transparent images, i attached an example so u can understand what i mean by that.

[Only registered and activated users can see links. Click Here To Register...]
12/11/2019 16:28 Utopia25#5
Thank you, i loaded an another imagesearch2015 Pack from an another theard.
I think it´s the same, but the test.au3s are different. Both tests in the pack works, but when i add a third image in the test.au3 from your pack, so the third images will not found. I don´t understand this, the code it´s so simple, normally you can get make misteakes.
12/11/2019 16:30 False#6
#moved