Register for your free account! | Forgot your password?

You last visited: Today at 10:09

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

Advertisement



AutoIt

Discussion on AutoIt within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
Frenii's Avatar
 
elite*gold: 1
Join Date: Feb 2011
Posts: 261
Received Thanks: 71
AutoIt

Hej
Weiß net ob ich hier richtig bin aber brauche ma eben Hilfe


Kann mir jemand diesen Code so umschreiben
das er sofern er das Close.png Bild nicht findet
PHP Code:
$result3=_ImageSearch("Close.png",1,$x1,$y1,0)
         If 
$result=1 Then
            MouseClick
("Left",$x1,$y1)
            
sleep(500
Wieder oben bei dem ersten result anfängt?
Also findet er Close.png nicht fängt er wieder ganz oben bei dem ersten an?

Danke schon einmal.
Frenii is offline  
Old 04/22/2012, 12:44   #2

 
Njahs's Avatar
 
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
*hust*

Btw.
Code:
Do
	$result1 = _ImageSearch("Angriff.png", 1, $x1, $y1, 0)
	If IsArray($result1) Then
		MouseClick("Left", $x1, $y1)
		Sleep(500)
	EndIf

	$result2 = _ImageSearch("Target.png", 1, $x1, $y1, 0)
	If IsArray($result2) Then
		MouseClick("Left", $x1, $y1)
		Sleep(2500)
	EndIf

	$result3 = _ImageSearch("Close.png", 1, $x1, $y1, 0)
	If IsArray($result3) Then
		MouseClick("Left", $x1, $y1)
		Sleep(500)
	EndIf
Until IsArray($result1) And IsArray($result2) And IsArray($result3)
Njahs is offline  
Thanks
1 User
Old 04/22/2012, 13:01   #3
 
Frenii's Avatar
 
elite*gold: 1
Join Date: Feb 2011
Posts: 261
Received Thanks: 71
Danke

Sorry hatte net gesehen das es ne exter Section gibt
Frenii is offline  
Old 04/26/2012, 08:32   #4

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Adroxxx is offline  
Closed Thread




All times are GMT +2. The time now is 10:09.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.