○AutoIT Koda CSS Aimbot

05/09/2011 17:08 Marcel110#1
Guten Tag,

Ich habe gerade ein Aimbot geschrieben, und der geht aber nicht :(
ich habe jede figur einzelen gescreen ( für die Farbe)
Num Sieht der code so aus.:
Quote:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\marcello\desktop\aimbot.kxf
$Aimbot = GUICreate("Aimbot", 259, 146, -1, -1)
GUISetIcon("C:\Program Files (x86)\AutoIt3\Icons\au3.ico", -1)
$Button1 = GUICtrlCreateButton("CT Start", 32, 40, 75, 25)
$Button2 = GUICtrlCreateButton("CT Stop", 32, 72, 75, 25)
$Group1 = GUICtrlCreateGroup("Counter Terror", 16, 16, 105, 97)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Terrorist", 136, 16, 105, 97)
$Button3 = GUICtrlCreateButton("T Start", 152, 40, 75, 25)
$Button4 = GUICtrlCreateButton("T Stop", 152, 72, 75, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label1 = GUICtrlCreateLabel("Aimbot by 'Kay0-", 16, 120, 82, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE

Case $Button1

$Variable=PixelSearch(9,8,1919,1079,0x3A3324)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf

$Variable=PixelSearch(9,8,1919,1079,0x6A3F22)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x343737)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x6D684D)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
MsgBox(0,"Aimbot","Der CT Aimbot ist jetzt Aktiv")
Case $Button2

Exit

MsgBox(0,"Aimbot","Der CT Aimbot ist jetzt Deaktiviert")
Case $Button3

$Variable=PixelSearch(9,8,1919,1079,0xBE4D2A)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x695B40)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x84481A)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x75462C)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],)
MouseClick ("left")
EndIf

MsgBox(0,"Aimbot","Der T Aimbot ist jetzt Aktiv")
Case $Button4

Exit

MsgBox(0,"Aimbot","Der T Aimbot ist jetzt Deaktiviert")
Exit

EndSwitch
WEnd


und es geht nicht Warum?
05/09/2011 21:25 Ludder231#2
1.Guck mal wo du die Exits gesetzt hast
2. du hast iwo eine 1 vergessen
3. Auch die while schleifen sind falsch

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\marcello\desktop\aimbot.kxf
$Aimbot GUICreate("Aimbot"259146, -1, -1)
GUISetIcon("C:\Program Files (x86)\AutoIt3\Icons\au3.ico", -1)
$Button1 GUICtrlCreateButton("CT Start"32407525)
$Button2 GUICtrlCreateButton("CT Stop"32727525)
$Group1 GUICtrlCreateGroup("Counter Terror"161610597)
GUICtrlCreateGroup("", -99, -9911)
$Group2 GUICtrlCreateGroup("Terrorist"1361610597)
$Button3 GUICtrlCreateButton("T Start"152407525)
$Button4 GUICtrlCreateButton("T Stop"152727525)
GUICtrlCreateGroup("", -99, -9911)
$Label1 GUICtrlCreateLabel("Aimbot by 'Kay0-"161208217)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg 
GUIGetMsg()
Switch 
$nMsg
Case $GUI_EVENT_CLOSE

Case $Button1
MsgBox
(0,"Aimbot","Der CT Aimbot ist jetzt Aktiv")
While 
1
$Variable
=PixelSearch(9,8,1919,1079,0x3A3324)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf

$Variable=PixelSearch(9,8,1919,1079,0x6A3F22)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x343737)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x6D684D)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf

wend



Case $Button2
MsgBox
(0,"Aimbot","Der CT Aimbot ist jetzt Deaktiviert")
exitloop
exit

Case 
$Button3
MsgBox
(0,"Aimbot","Der T Aimbot ist jetzt Aktiv")
while 
1
$Variable
=PixelSearch(9,8,1919,1079,0xBE4D2A)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x695B40)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x84481A)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
$Variable=PixelSearch(9,8,1919,1079,0x75462C)
If 
IsArray($Variable) = True Then
MouseMove
($Variable [0], $Variable [1],1)
MouseClick ("left")
EndIf
wend


Case $Button4
MsgBox
(0,"Aimbot","Der T Aimbot ist jetzt Deaktiviert")
exitloop
Exit

EndSwitch
WEnd 
05/10/2011 00:05 BlackHybrid#3
Benutz doch gleich nur MouseClick("Left", $Variable[0], $Variable[0]) das macht das ganze etwas übersichtlicher.
05/10/2011 14:16 Marcel110#4
HeyHo.. Danke es geht, but :D
Er findet die Pixel auch im boden, und ja ..D er schaut immer zum boden und dreht sich übels. Kann mir irrgenwie einer eine bessere methode nennen, auser Pixel suchen?( sollte auch undetected sein)