Probleme mit der While & PixelSearch

01/13/2013 11:53 BlueBasHeR#1
Hey leuts ich wollt mal aus langeweile nen kleinen Aimbot machen für Stickman
und er Sucht nach 0x666666 (Grau)

Der ganze code ist eig richtig es klappt auch aber nur 1x dann Schließt sich wieder das Prog.

Hier mal den Code
Code:
HotKeySet("{F9}","_Start")
HotKeySet("{F10}","_End")

While 1
	Sleep(1)
WEnd

Func _Start()
While 1
		$PXS = PixelSearch(405, 384, 974, 697, 0x666666)
		MouseMove($PXS[0],$PXS[1])
		MouseClick("left")
WEnd
EndFunc

Func _End()
	Exit
EndFunc
Danke schonmal für eure hilfe bitte antwortet schnelll :)
01/13/2013 12:10 Requi#2
Code:
HotKeySet("{F9}","_Start")
HotKeySet("{F10}","_End")

While 1
Sleep(1)
WEnd
$shoot = false
Func _Start()
$shoot = Not $shoot
If $shoot Then
While 1
$PXS = PixelSearch(405, 384, 974, 697, 0x666666)
If isArray($PXS) Then
MouseMove($PXS[0],$PXS[1])
MouseClick("left")
Else 
While 1
Sleep(10)
Wend
EndIf
WEnd
EndIf 
EndFunc

Func _End()
Exit
EndFunc
Einmal F9 und er sucht die ganze Zeit. Nochmal und es pausiert
01/13/2013 13:03 BlueBasHeR#3
Danke es Klappt