Antwort bot

04/29/2011 14:18 clemgregor#1
hi habe ne frage möcht eien antwort bot machen macht ihr mihr eie richtige version von dem code
Code:
#include <Array.au3>
HotkeySet ( "{F5}" , "Start")
HotkeySet ( "{F7}" , "Ende")

global $zufall
global $text[4]

$text[1]= "Sry kz probier grade GAAANZ viele muscheln zu fangen xD {ENTER}"

$text[2]= "Man warum fange ich keine muscheln ?{ENTER}" 

$text[3]= "Immer schreiben mich iwelche noobs an die was von mir wollen omg{ENTER}"

 
while 1
	sleep(500)
Wend

func start ()
	while 2
	$zufall = random (1,3)
	if PixelGetcolor( 968 , 223 )=0xFFFBFF then
		mouseclick("primary" ,968 , 223 ,1) 
		send($text[$zufall])
	if PixelGetcolor(263 , 18)=	0xFFFBFF then
		 mouseclick("primary" ,261 , 18 ,1) 
		if else PixelGetcolor(293 , 49)=0xFFFBFF then
			 mouseclick("primary" ,293 , 49 ,1) 
			 if else PixelGetcolor(323 , 78)=0xFFFBFF then
			 mouseclick("primary" ,323 , 78 ,1) 
			 if else Pixelgetcolor(354, 110)=0xFFFBFF Then
				 mouseclick("primary" , 354, 110, 1)
				 if else Pixelgetcolor(354, 110)=0xFFFBFF Then
					 mouseclick("primary" , 354, 110, 1)
				ElseIf
				 
Wend
	Else
		sleep (100)
	Endif

EndFunc


func Ende()
	exit
EndFunc