Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:12

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

Advertisement



AutoIt ImageSearch findet Bild nicht

Discussion on AutoIt ImageSearch findet Bild nicht within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
paaN''s Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 616
Received Thanks: 134
AutoIt ImageSearch findet Bild nicht

Hallo Leute,

folgende Frage ich habe dieses Bild:


Und diesen Screenshot:


Allerdings findet AutoIt den Screenshot nicht in dem Bild. Was kann ich noch tun?

Hier mal der Code:
Code:
#include <ImageSearch.au3>

HotKeySet("{NUMPAD1}","starten")
HotKeySet("{NUMPAD2}","stoppen")

global $y = 0, $x = 0

While 1
   Sleep(200)
WEnd

Func starten()
   While 1
	  Local $search = _ImageSearch('rechts.png', 0, $x, $y, 20)
	   If $search = 1 Then
	  MouseMove($x, $y, 10)
   Else
	  MsgBox("","Error 1","Bild wurde nicht gefunden")
   EndIf
   WEnd
EndFunc

Func stoppen()
   Exit 1
EndFunc
Danke für eure Hilfe!
paaN' is offline  
Old 11/14/2019, 19:16   #2

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Evtl hat AutoIt Probleme mit transparenten Bildern. Versuch es mal mit jpg oder bmp
Moneypulation is offline  
Reply


Similar Threads Similar Threads
AutoIT - ImageSearch läuft nicht richtig.
04/11/2018 - AutoIt - 22 Replies
Hallo, ich habe es hinbekommen, (mit x64) dass der Mauszeiger sich bewegt und klickt beim ImageSearch. Leider geht er ein ordentliches Stück unter den gewünschten Button. An was kann das liegen? So siehts aus: $x1=0 $y1=0 Sleep (3000) $variable=_ImageSearch("search.bmp", 1, $x1, $y1, 0) If $variable=1 then
hilfe ImageSearch Random Click auf Bild?
02/01/2014 - AutoIt - 8 Replies
Hallo ich verstehe noch nicht so viel von Autoit da wollte ich fragen wie kann ich bei ImagenSearch ein Ronadom Click machen auf das gesuchte bild. Wer kann mir helfen? Danke. Mein code: #include <ImageSearch.au3>
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 16:13.


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.