i Need help How make it work

05/01/2012 01:37 Fairy10#1
i make auto HP and Mp can help to make it work ?

Code:
[CODE]#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <SliderConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Auto HP&MP", 213, 225, 299, 218, BitOR($WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_POPUP))
GUISetBkColor(0xFF0000)
GUICtrlCreateInput("", 104, 8, 105, 21)
$Label1 = GUICtrlCreateLabel("Name Your Cher", 8, 8, 82, 17)
$Label2 = GUICtrlCreateLabel("HP", 16, 48, 19, 17)
$Label3 = GUICtrlCreateLabel("MP", 16, 104, 20, 17)
$Slider1 = GUICtrlCreateSlider(16, 72, 150, 21)
$Slider2 = GUICtrlCreateSlider(16, 128, 150, 21)
$Button1 = GUICtrlCreateButton("Start", 16, 176, 75, 17)
$Button2 = GUICtrlCreateButton("Exit", 112, 176, 75, 17)
$Edit1 = GUICtrlCreateEdit("", 168, 72, 25, 17, 0)
$Edit2 = GUICtrlCreateEdit("", 168, 128, 25, 17, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
Case $Button1
Start()
Case $Button2
Exit
Case $Slider1
Hp
Case $Slider2
Mp
	EndSwitch
WEnd
Func Start()
What need add here?
EndFunc
Func Hp
What need add here?
End Func
Func Mp

What need add here?
EndFunc[/CODE]
What Func Need add to work can help ?