hallo,
bin neu hier und hab ne frage. ich hab für all meine setups scripte gemacht und mir mit koda ein menu mit checkboxen erstellt (im onevent modus).
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 239, 264, 193, 125)
$Checkbox1 = GUICtrlCreateCheckbox("Acrobat Reader", 10, 8, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Alcohol 120", 10, 32, 97, 17)
$Checkbox3 = GUICtrlCreateCheckbox("AutoIT", 10, 56, 97, 17)
$Checkbox4 = GUICtrlCreateCheckbox("CDEx", 10, 80, 97, 17)
$Checkbox5 = GUICtrlCreateCheckbox("ConvertXtoDVD", 10, 104, 97, 17)
$Checkbox6 = GUICtrlCreateCheckbox("FFDShow", 10, 128, 97, 17)
$Checkbox7 = GUICtrlCreateCheckbox("Firefox", 10, 152, 97, 17)
$Checkbox8 = GUICtrlCreateCheckbox("Framework 2.0", 10, 176, 97, 17)
$Checkbox9 = GUICtrlCreateCheckbox("Java", 10, 200, 97, 17)
$Checkbox10 = GUICtrlCreateCheckbox("KM Player", 138, 8, 97, 17)
$Checkbox11 = GUICtrlCreateCheckbox("MP3Gain", 138, 32, 97, 17)
$Checkbox12 = GUICtrlCreateCheckbox("Nero Micro", 138, 56, 97, 17)
$Checkbox13 = GUICtrlCreateCheckbox("Thunderbird", 138, 80, 97, 17)
$Checkbox14 = GUICtrlCreateCheckbox("Unlocker", 138, 104, 97, 17)
$Checkbox15 = GUICtrlCreateCheckbox("Updatepack", 138, 128, 97, 17)
$Checkbox16 = GUICtrlCreateCheckbox("WinRAR", 138, 152, 97, 17)
$Checkbox17 = GUICtrlCreateCheckbox("Checkbox17", 138, 176, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox18 = GUICtrlCreateCheckbox("Checkbox18", 138, 200, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox19 = GUICtrlCreateCheckbox("Checkbox19", 266, 8, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox20 = GUICtrlCreateCheckbox("Checkbox20", 266, 32, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox21 = GUICtrlCreateCheckbox("Checkbox21", 266, 56, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox22 = GUICtrlCreateCheckbox("Checkbox22", 266, 80, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox23 = GUICtrlCreateCheckbox("Checkbox23", 266, 104, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox24 = GUICtrlCreateCheckbox("Checkbox24", 266, 128, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox25 = GUICtrlCreateCheckbox("Checkbox25", 266, 152, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox26 = GUICtrlCreateCheckbox("Checkbox26", 266, 176, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox27 = GUICtrlCreateCheckbox("Checkbox27", 266, 200, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox28 = GUICtrlCreateCheckbox("Checkbox28", 386, 8, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox29 = GUICtrlCreateCheckbox("Checkbox29", 386, 32, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox30 = GUICtrlCreateCheckbox("Checkbox30", 386, 56, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox31 = GUICtrlCreateCheckbox("Checkbox31", 386, 80, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox32 = GUICtrlCreateCheckbox("Checkbox32", 386, 104, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox33 = GUICtrlCreateCheckbox("Checkbox33", 386, 128, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox34 = GUICtrlCreateCheckbox("Checkbox34", 386, 152, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox35 = GUICtrlCreateCheckbox("Checkbox35", 386, 176, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox36 = GUICtrlCreateCheckbox("Checkbox36", 386, 200, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox37 = GUICtrlCreateCheckbox("Checkbox37", 506, 8, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox38 = GUICtrlCreateCheckbox("Checkbox38", 506, 32, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox39 = GUICtrlCreateCheckbox("Checkbox39", 506, 56, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox40 = GUICtrlCreateCheckbox("Checkbox40", 506, 80, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox41 = GUICtrlCreateCheckbox("Checkbox41", 506, 104, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox42 = GUICtrlCreateCheckbox("Checkbox42", 506, 128, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox43 = GUICtrlCreateCheckbox("Checkbox43", 506, 152, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox44 = GUICtrlCreateCheckbox("Checkbox44", 506, 176, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Checkbox45 = GUICtrlCreateCheckbox("Checkbox45", 506, 200, 97, 17)
GUICtrlSetState(-1, $GUI_HIDE)
$Button1 = GUICtrlCreateButton("Installieren", 10, 224, 123, 25, 0)
GUICtrlSetOnEvent($button1, "button1")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Sleep(100)
WEnd
func button1()
If GUICtrlRead($Checkbox1) = 1 Then RunWait("IT\Acrobat Reader.exe")
If GUICtrlRead($Checkbox2) = 1 Then RunWait("IT\Alcohol120 1.exe")
If GUICtrlRead($Checkbox3) = 1 Then RunWait("IT\AutoIT.exe")
If GUICtrlRead($Checkbox4) = 1 Then RunWait("IT\CDEx.exe")
If GUICtrlRead($Checkbox5) = 1 Then RunWait("IT\ConvertXtoDVD.exe")
endfunc
habe jetzt nur mal die ersten 5 befehle zum testen geschrieben. wenn ich zb 1,4 u 5 anhacke und den button drücke startet das erste script und installiert erfolgreich, es startet das cdex script, er wartet ca 5sek und das letzte script startet ohne irgendwas zu machen.
im cdex script steht einfach nur das er einen ordner in den programmordner kopiert und 5 sek wartet(was über die gui aber nicht geht).
wo liegt da der fehler?
danke im voraus!