|
You last visited: Today at 14:17
Advertisement
Hilfe bei Gamebot
Discussion on Hilfe bei Gamebot within the AutoIt forum part of the Coders Den category.
07/06/2014, 10:18
|
#1
|
elite*gold: 0
Join Date: Nov 2013
Posts: 5
Received Thanks: 0
|
Hilfe bei Gamebot
Guten Abend alle miteinander,
Ich habe grade mal versucht einen kleinen Klickbot zu schreiben, welcher größtenteils nur Pixelabfrage durchführt und danach dann irgendwo hinklickt. Eine große Effizienz hat er noch nicht, aber daran arbeite ich dann noch.
Allerdings hat er das Problem, das Sobald die erste Pixelabfrage durchgeführt ist, hängt das Programm auf einmal und klickt nicht.
Hier einmal der Quellcode:
sleep(3000)
WinActivate("BlueStacks App Player for Windows (beta-1)")
WinMove("BlueStacks App Player for Windows (beta-1)","",0,0,1200,800)
While 1
$col=PixelGetColor(934,499)
while Hex($col, 6)<>"D7AE53"
WEnd
MouseMove(934,499,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
$col_a=Hex(PixelGetColor(857,389),6)
while $col_a<>"D61847"
WEnd
Sleep(5000)
MouseMove(420,330,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
Sleep(2000)
MouseMove(420,330,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
$col_b=Hex(PixelGetColor(767,564),6)
while $col_b<>"25180E"
WEnd
Sleep(250)
MouseMove(595,555,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
$col_c=Hex(PixelGetColor(380,411),6)
while $col_c)<>"CCBB84"
WEnd
Sleep(250)
MouseMove(380,411,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
WEnd
Und das Problem liegt bei folgender Stelle:
$col_a=Hex(PixelGetColor(857,389),6)
while $col_a<>"D61847"
WEnd
Ich befürchte das der Bot in dem Loop hängen bleibt, aber ich weis nicht genau. Bitte alle Ideen runter schreiben
LG Hypotakt
|
|
|
07/06/2014, 13:01
|
#2
|
elite*gold: 0
Join Date: Feb 2010
Posts: 270
Received Thanks: 912
|
Hi,
Problem schon mal richtig erkannt, dein Bot springt in die 1. While-Schleife (while 1) und prüft dann die Farbe $col = ... (1 mal) und springt, wenn $col ungleich der gesuchten Farbe ist, in die 2. While-Schleife, wo dann nichts mehr passiert. Möglichkeit 1, du prüfst in der While-Schleife die Farbe und springst raus, wenn du sie gefunden hast. Möglichkeit 2, du prüfst einfach alle deine Farben in einer While-Schleife und machst dann, wenn diese gefunden wurden die Klicks. Ich habs dir mal als Beispiel geschrieben.
PHP Code:
HotKeySet("{ESC}","_exit")
Sleep(3000)
WinActivate("BlueStacks App Player for Windows (beta-1)")
WinMove("BlueStacks App Player for Windows (beta-1)","",0,0,1200,800)
While True
Sleep(100)
Select
Case Hex(PixelGetColor(934,499),6) = "D7AE53"
MouseMove(934,499,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
Case Hex(PixelGetColor(857,389),6) = "D61847"
Sleep(5000)
MouseMove(420,330,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
Sleep(2000)
MouseMove(420,330,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
Case Hex(PixelGetColor(767,564),6) = "25180E"
Sleep(250)
MouseMove(595,555,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
Case Hex(PixelGetColor(380,411),6) = "CCBB84"
Sleep(250)
MouseMove(380,411,1)
sleep(50)
MouseClick("Left")
sleep(50)
MouseClick("Left")
EndSelect
WEnd
Func _exit()
Exit
EndFunc
|
|
|
07/06/2014, 16:17
|
#3
|
elite*gold: 0
Join Date: Nov 2013
Posts: 5
Received Thanks: 0
|
Habe Dank, mit "case" funktioniert es jetzt super!
|
|
|
 |
Similar Threads
|
Gamebot Mafia (Studi & Meinvz.de)
07/24/2012 - Browsergames - 27 Replies
Halli Hallo,
es hat ein wenig gedauert aber nun würde ich gerne meinen GameBot vorstellen!
Lostprojekt ist ein Bot verschiedenster Browsergames!
momentan steht euch der Clickbot für Goodgame Mafia bei Studi und Meinvz zur verfügung.
Weitere Bots z.B. für Browsergames:
Die Siedler Onliene (70%) weitere werden sicherlich folgen!
|
WTB dekaron eu gamebot
05/05/2010 - Dekaron Trading - 2 Replies
topic says all gamebot for dekaron eu global helion server pm me!!!
|
WTB gamebot for dekaron global
04/16/2010 - Dekaron Trading - 2 Replies
hey i search an dekaron global bot with easy handling pm me thx
|
Gamebot.uuu.to's Crack. Informations
04/23/2006 - Silkroad Online - 28 Replies
Alright i managed to talk to the creator on MSN , Here's what i got.
Was at 7:30 this morning
So for those that though the Srobot price was too high than you could consider
this :) Basically it's same as Srobot but way cheaper. lol Srobot = 14.50/15days
While this is 8$/30 days. But is it true that with Srobot you get the fully 15 days of bot.(360Hours) SO basically with the crack if you bot 12 hours a day you're as effiecient as the Original bot and... You paid Cheaper! Not only...
|
All times are GMT +1. The time now is 14:18.
|
|