Jump to content

SeaSky

Members
  • Posts

    4
  • Joined

  • Last visited

SeaSky's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. thanks but see $started = Timerinit $started = Timerinit^ ERROR
  2. yes i know it now and i make Checkbox work when i add While 1 $msg = GUIGetMsg() Select Case $msg = $Button1 $send1 = GUICtrlRead($1) While 1 Send($send1) WEnd Case $msg = $GUI_EVENT_CLOSE GUIDelete() ExitLoop EndSelect WEnd but i don't know how make Time Work and Stop work so i need help Only in Time and Stop Button i will Try to so i know i will not get many help
  3. i Will Help me i am Really Surprised for Melba23 cant help you ! see will add 2 func Only that it Func Selectoncheckbox() GUICtrlSetState($Checkbox1, $GUI_CHECKED) EndFunc Func Selectoncheckbox1() GUICtrlSetState($Checkbox1, $GUI_unchecked) EndFunc will make 2 hotkeyset if went all Script #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> HotKeySet("{z}", "Selectoncheckbox") HotKeySet("{x}", "Selectoncheckbox1") #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("", 215, 235, 299, 218) $Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 112, 16, 97, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Selectoncheckbox() GUICtrlSetState($Checkbox1, $GUI_CHECKED) EndFunc Func Selectoncheckbox1() GUICtrlSetState($Checkbox1, $GUI_unchecked) EndFunc if he went add more check box he will need add other to func but change name func and change name $Checkbox1 Depending on the name $Checkbox 1 and the name next func not any name HotKeySet("{x}", "Here name the next Func") so will add Func Here name The Next Func any name but Be necessary in HotKeySet i hope i help your Friend
  4. Hi i went my Script went work Example when i chick on Checkbox1 and chick start write 1 and when i write 3 Sec in Input and chick start write 1 all 3 sec and when chick Stop All Stop #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Test", 423, 139, 731, 405, 0) GUISetBkColor(0x646464) $Checkbox1 = GUICtrlCreateCheckbox("1", 144, 0, 25, 17) $Checkbox2 = GUICtrlCreateCheckbox("2", 280, 0, 25, 17) $Checkbox3 = GUICtrlCreateCheckbox("5", 280, 24, 25, 17) $Checkbox4 = GUICtrlCreateCheckbox("8", 280, 48, 25, 17) $Checkbox5 = GUICtrlCreateCheckbox("3", 0, 24, 25, 17) $Checkbox6 = GUICtrlCreateCheckbox("4", 144, 24, 25, 17) $Checkbox7 = GUICtrlCreateCheckbox("6", 0, 48, 25, 17) $Checkbox8 = GUICtrlCreateCheckbox("7", 144, 48, 25, 17) $Checkbox9 = GUICtrlCreateCheckbox("0", 0, 0, 25, 17) $Checkbox10 = GUICtrlCreateCheckbox("9", 280, 72, 25, 17) $Input2 = GUICtrlCreateInput("", 216, 72, 33, 17) $Time = GUICtrlCreateLabel("Time", 176, 72, 27, 17) $Label1 = GUICtrlCreateLabel("Sec", 256, 72, 23, 17) $Input1 = GUICtrlCreateInput("", 72, 48, 33, 17) $Label2 = GUICtrlCreateLabel("Time", 32, 48, 27, 17) $Label3 = GUICtrlCreateLabel("Sec", 112, 48, 23, 17) $Input3 = GUICtrlCreateInput("", 352, 24, 33, 17) $Label4 = GUICtrlCreateLabel("Time", 312, 24, 27, 17) $Label5 = GUICtrlCreateLabel("Sec", 392, 24, 23, 17) $Input4 = GUICtrlCreateInput("", 216, 48, 33, 17) $Label6 = GUICtrlCreateLabel("Time", 176, 48, 27, 17) $Label7 = GUICtrlCreateLabel("Sec", 256, 48, 23, 17) $Input5 = GUICtrlCreateInput("", 216, 24, 33, 17) $Label8 = GUICtrlCreateLabel("Time", 176, 24, 27, 17) $Label9 = GUICtrlCreateLabel("Sec", 256, 24, 23, 17) $Input6 = GUICtrlCreateInput("", 352, 48, 33, 17) $Label10 = GUICtrlCreateLabel("Time", 312, 48, 27, 17) $Label11 = GUICtrlCreateLabel("Sec", 392, 48, 23, 17) $Input7 = GUICtrlCreateInput("", 352, 0, 33, 17) $Label12 = GUICtrlCreateLabel("Time", 312, 0, 27, 17) $Label13 = GUICtrlCreateLabel("Sec", 392, 0, 23, 17) $Input8 = GUICtrlCreateInput("", 72, 24, 33, 17) $Label14 = GUICtrlCreateLabel("Time", 32, 24, 27, 17) $Label15 = GUICtrlCreateLabel("Sec", 112, 24, 23, 17) $Input9 = GUICtrlCreateInput("", 216, 0, 33, 17) $Label16 = GUICtrlCreateLabel("Time", 176, 0, 27, 17) $Label17 = GUICtrlCreateLabel("Sec", 256, 0, 23, 17) $Input10 = GUICtrlCreateInput("", 72, 0, 33, 17) $Label18 = GUICtrlCreateLabel("Time", 32, 0, 27, 17) $Label19 = GUICtrlCreateLabel("Sec", 112, 0, 23, 17) $Input11 = GUICtrlCreateInput("", 72, 72, 33, 17) $Label20 = GUICtrlCreateLabel("Time", 40, 72, 27, 17) $Label21 = GUICtrlCreateLabel("Sec", 112, 72, 23, 17) $Label22 = GUICtrlCreateLabel("Time", 312, 72, 27, 17) $Input11 = GUICtrlCreateInput("", 352, 72, 33, 17) $Labe23 = GUICtrlCreateLabel("Sec", 392, 72, 23, 17) $Tab = GUICtrlCreateCheckbox("Tab", 0, 72, 41, 17) $Ctrl = GUICtrlCreateCheckbox("Ctrl", 144, 72, 33, 17) $Button1 = GUICtrlCreateButton("Start", 0, 96, 27, 17) $Button2 = GUICtrlCreateButton("Exit", 64, 96, 27, 17) $Button3 = GUICtrlCreateButton("Stop", 32, 96, 27, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Thanks
×
×
  • Create New...