And ill do it again, cuzz i gotta question to coding with auto it.
i got this code
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Misc.au3>
HotKeySet("{ESC}", "Terminate")
#Region ### START Koda GUI section ### Form=C:\Users\TN\Desktop\buttonmode.kxf
$Form1 = GUICreate("Form1", 137, 316, 218, 132)
$Button1 = GUICtrlCreateButton("Button1", 24, 56, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 24, 96, 75, 25)
$Button3 = GUICtrlCreateButton("Button3", 24, 136, 75, 25)
$Button4 = GUICtrlCreateButton("Button4", 24, 176, 75, 25)
$Button5 = GUICtrlCreateButton("Button5", 24, 216, 75, 25)
$Button6 = GUICtrlCreateButton("Button6", 24, 256, 75, 25)
$Label1 = GUICtrlCreateLabel("Label1", 16, 16, 100, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Opt('MustDeclareVars', 1)
Example()
Func Example()
Local $Button_1, $Button_2, $Button_3, $Button_4, $Button_5, $Button_6,$msg
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button1
mousemove(600, 600, 0)
Case $msg = $Button2
MouseMove (0, 0, 0)
Case $msg = $Button3
MouseMove (0, 0, 0)
Case $msg = $Button4
MouseMove (0, 0, 0)
Case $msg = $Button5
MouseMove (0, 0, 0)
Case $msg = $Button6
MouseMove (0, 0, 0)
EndSelect
WEnd
EndFunc ;==>Example
Func Terminate()
Exit 0
EndFunc
and i want to start the cases first if i click on , e.g. numpad 0. its just a simple problem i suggest but i dont get it...
also the script may not be rly good, maybe some1 would be so kind and help me some?