Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:56

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

Advertisement



Bot Problem [LoL]

Discussion on Bot Problem [LoL] within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Regwin32's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 733
Received Thanks: 260
Bot Problem [LoL]

Hallo, ich habe mit Autoit angefangen, nun bin ich dabei einen League of Legends Levelbot zuschreiben. Eigentlich läuft alles aber nur Stockend und zu ungenau.
Ich habe nur das Problem wenn ich das Match dann gewonnen habe, dass der BOT nicht auf "Weiter" klickt. Ich habe ImageSearch ausprobiert
Code:
$Weiter = _ImageSearch("Weiter.bmp",1,$x,$y,100)
Do 
MouseClick("left",cord,cord) ;Busch Koordinaten
Until $Weiter = 1
If $Weiter = 1 Then
MouseClick("left",$x,$y,1,10)
EndIf
Doch nun macht er erst nur die Bewegung zum "Busch" doch wenn das "Weiter" Image erscheint hört er nicht auf.
Image :
Darauf habe ich es mit If versucht
Code:
If $Weiter = 0 Then
MouseClick("left",cord,cord) ;Busch Koordinaten
Else MouseClick("left",$x,$y,1,10)
EndIf
Und nur MouseClicks sind zu ungenau, manchmal ist das Match nach 11 minuten manchmal nach 23 beendet.
Regwin32 is offline  
Old 11/24/2012, 00:34   #2
 
elite*gold: 0
Join Date: Aug 2011
Posts: 442
Received Thanks: 78
I find it odd that your unable to code something that you have already coded once in your Darkorbit bot :/

Code:
Global $x = 0
Global $y = 0

$b = _ImageSearch("a.bmp", 1, $x, $y, 100)
If $b = False Then
	While 1
		sleep(300)
		$b = _ImageSearch("a.bmp", 1, $x, $y, 100)
		If $b = True Then
			MouseMove($x, $y)
		EndIf
	WEnd
EndIf
logical691 is offline  
Thanks
1 User
Old 11/24/2012, 11:19   #3
 
Regwin32's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 733
Received Thanks: 260
Quote:
Originally Posted by logical691 View Post
I find it odd that your unable to code something that you have already coded once in your Darkorbit bot :/

Code:
Global $x = 0
Global $y = 0

$b = _ImageSearch("a.bmp", 1, $x, $y, 100)
If $b = False Then
	While 1
		sleep(300)
		$b = _ImageSearch("a.bmp", 1, $x, $y, 100)
		If $b = True Then
			MouseMove($x, $y)
		EndIf
	WEnd
EndIf
My Friend help me alot with the bot . I gonna try this Script thanks
Regwin32 is offline  
Old 11/24/2012, 11:48   #4
 
elite*gold: 0
Join Date: Aug 2011
Posts: 442
Received Thanks: 78
Nps, i use it in some browser games so i know it works.
logical691 is offline  
Old 11/29/2012, 09:29   #5
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
Quote:
Originally Posted by Regwin32 View Post
My Friend help me alot with the bot . I gonna try this Script thanks
then why not use the examples or .. ask him ?
fear-x is offline  
Old 12/02/2012, 20:45   #6
 
BlueBasHeR's Avatar
 
elite*gold: 25
Join Date: Nov 2011
Posts: 266
Received Thanks: 60
Hatte das gleiche Problem versuch mal das Bild größer zu machen oder dein Game ändert die Farbe z.b. nach 2 sec wird WEITER Gelb dann Weis dann so weiter
aber dann würde der doch klicken? haha ne ka
vg
BlueBasHeR is offline  
Old 12/03/2012, 08:56   #7
 
elite*gold: 0
Join Date: Aug 2011
Posts: 442
Received Thanks: 78
Here is an example using Do, Until as you can see i added a timer so after so many seconds it quits, i got this idea after using similar code for a pixel search.

Code:
$tstart = TimerInit()
$timerout = 30 ;seconds
Do
$img = _ImageSearchArea("test.png", 1, 0, 0, @DesktopHeight, @DesktopWidth, $x, $y, 100)
If TimerDiff($tstart) > $timeout * 1000 Then
MsgBox(0, "", "Image was not found within timeout period (" & $timeout & " seconds)")
Exit
EndIf
Until $img = True
MouseMove($x, $y)
logical691 is offline  
Reply


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +1. The time now is 07:57.


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