need so help on this script

02/20/2011 23:42 chris606#1
#cs ----------------------------------------------------------------------------

AutoIt Version: 3.3.6.1
Author:Chris606
#ce ----------------------------------------------------------------------------
#include <GUIConstantsEx.au3>

GUICreate("Chris606 Bot", 335, 100)


GUICreate("GUICtrlSetData", 200,100)
GUISetState(@SW_SHOW)

$button = GUICtrlCreateButton("Start",8, 10)
$button = GUICtrlCreateButton("Stop", 35, 40, 120)

HotKeySet("{NUMPADSUB}", "_getPosition")

$x = 544
$y = 249
$color = 0
$status = "off"

While 1
sleep("1")
If $status = "on" Then
;code here
EndIf

WEnd

Func _getDefault()
$coord = MouseGetPos(,)
$x = $coord[0]
$y = $coord[1]
$color = 425513(4347155( $coord[0], $coord[1]), 6)
$status = "on"
EndFunc

HotKeySet("{NUMPADSUB}", "_getDefault")

$x = 544
$y = 249
$color = 0
$newColor = 0
$status = "off"

While 1
If $status = "on" Then
If _getCurrentColor($x, $y) <> $color Then
Send("1")
EndIf
EndIf
WEnd


Func _getDefault() <------i dont no what to do can some 1 help me out
$coord = MouseGetPos()
$x = $coord[0]
$y = $coord[1]
$color = Hex(PixelGetColor( $coord[0], $coord[1]), 6)
$status = "on"
EndFunc


Func _getCurrentColor($xDef, $yDef)
$newColor = Hex(PixelGetColor( $xDef, $yDef), 6)
Return ($newColor)
EndFunc