1 2 3 |
Case $cs ;wird ausgelöst wenn die Radiobox 1 angeklickt wurde ShellExecute("sys/programm.bat") ;startet das Programm 1 GUICtrlSetState($cs, $GUI_UNCHECKED) ;Schaltet die Radiobox aus |
reicht schon aus 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 148, 115, 192, 124) $p1 = GUICtrlCreateRadio("Programm 1", 16, 16, 113, 33) $p2 = GUICtrlCreateRadio("Programm 2", 16, 64, 113, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg case $GUI_EVENT_CLOSE Exit Case $p1 ShellExecute("sys\p1.bat") GUICtrlSetState($p1, $GUI_UNCHECKED) Case $p2 ShellExecute("sys\p2.bat") GUICtrlSetState($p1, $GUI_UNCHECKED) EndSwitch WEnd While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Michi2q« (29. Mai 2009, 23:29)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 148, 115, 192, 124) $p1 = GUICtrlCreateRadio("Programm 1", 16, 16, 113, 33) $p2 = GUICtrlCreateRadio("Programm 2", 16, 64, 113, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg case $GUI_EVENT_CLOSE Exit Case $p1 Run("sys\p1.bat",@scriptdir&"\sys\") GUICtrlSetState($p1, $GUI_UNCHECKED) Case $p2 Run("sys\p2.bat",@scriptdir&"\sys\") GUICtrlSetState($p1, $GUI_UNCHECKED) EndSwitch WEnd While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd |

1 |
HldsUpdateTool.exe -command xxxxxx -game cstrike -dir c:\cs_server |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#include <GUIConstantsEx.au3> $Form1 = GUICreate("Michi2q", 148, 115, 192, 124) $p1 = GUICtrlCreateRadio("Programm 1", 16, 16, 113, 17) $p2 = GUICtrlCreateRadio("Programm 2", 16, 64, 113, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $p1 ;Run(@ScriptDir & "\sys\p1.bat") MsgBox(64, "Radio-Taste", "Programm 1 gewählt !" & @TAB) GUICtrlSetState($p1, $GUI_UNCHECKED) Case $p2 ;Run(@ScriptDir & "\sys\p2.bat") MsgBox(64, "Radio-Taste", "Programm 2 gewählt !" & @TAB) GUICtrlSetState($p2, $GUI_UNCHECKED) EndSwitch WEnd ; Ende |