Bot hilfe

03/24/2010 19:31 CocaCocain#1
ehm kann mir jemand sagen wie ich mein script auf die buttons bekomme
dort ist der script schon drin :
Quote:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("CocaCocains PixelAimbot", 502, 155, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 16, 112, 91, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Ende", 112, 112, 91, 41, $WS_GROUP)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\MariuszDuda\Pulpit\hhh1.jpg", 8, 8, 484, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

EndSwitch
WEnd


While 1
$Variable = PixelSearch(40,10,34,23,0xFF0000)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick("left")
EndIf
WEnd

Func _Exit()
Exit
EndFunc
03/24/2010 19:38 HardCore.1337#2
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Start()

EndSwitch
WEnd

Func Start()
While 1
$Variable = PixelSearch(40,10,34,23,0xFF0000)
If IsArray($Variable) = True Then
MouseMove($Variable [0], $Variable [1],1)
MouseClick("left")
EndIf
WEnd
EndFunc

So?
03/24/2010 19:52 CocaCocain#3
danke ^^