Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 00:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Autoit] Imagesearch findet keine Images

Discussion on [Autoit] Imagesearch findet keine Images within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2019
Posts: 3
Received Thanks: 0
[Autoit] Imagesearch findet keine Images

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
Utopia25 is offline  
Old 12/11/2019, 02:22   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
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 $x1 != $x // $y1 ...
elmarcia is offline  
Thanks
1 User
Old 12/11/2019, 11:55   #3
 
elite*gold: 0
Join Date: Dec 2019
Posts: 3
Received Thanks: 0
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...
Utopia25 is offline  
Old 12/11/2019, 14:36   #4
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
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.

Attached Files
File Type: rar ImageSearch2015_withExample.rar (998.6 KB, 40 views)
elmarcia is offline  
Thanks
1 User
Old 12/11/2019, 16:28   #5
 
elite*gold: 0
Join Date: Dec 2019
Posts: 3
Received Thanks: 0
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.
Utopia25 is offline  
Old 12/11/2019, 16:30   #6


 
False's Avatar
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Apr 2011
Posts: 11,117
Received Thanks: 2,436
Arrow General Coding -> AutoIt

#moved
False is offline  
Reply


Similar Threads Similar Threads
AutoIt ImageSearch findet Bild nicht
11/14/2019 - AutoIt - 1 Replies
Hallo Leute, folgende Frage ich habe dieses Bild: https://i.ibb.co/wKgq6WL/Unbenannt-2.jpg Und diesen Screenshot: https://i.ibb.co/zR23TQ6/rechts.png Allerdings findet AutoIt den Screenshot nicht in dem Bild. Was kann ich noch tun?
autoit findet mit imagesearch das bild im spiel nicht oO?
01/21/2010 - AutoIt - 7 Replies
hallo, ich habe folgendes programm geschrieben: #include <ImageSearch.au3> Global $fenster Global $active = 0 $x = 0 $y = 0



All times are GMT +1. The time now is 00:25.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.