Hallo, ich habs mal angepasst. ![]()
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Array.au3>
;========Checkbox Names _SpezOpt=========
Global $Checkbox[14]
Global $CheckNames[14] = ['RAR', 'Zip', 'CAB', 'ARJ', 'LZH', 'ACE', '7-Zip', 'Tar', 'GZip', 'UUE', 'BZ2', 'JAR', 'ISO', 'Z']
Global $CheckFunk[14] = ['_RAR', '_ZIP', '_CAB', '_ARJ', '_LZH', '_ACE', '_7ZIP', '_TAR', '_GZIP', '_UUE', '_BZ2', '_JAR', '_ISO', '_Z']
Global $ini = @ScriptDir & '\Spez-Option.ini'
[/autoit] [autoit][/autoit] [autoit];RAR ZIP CAB ARJ LZH ACE 7ZIP TAR GZIP UUE BZ2 JAR ISO Z
;========================================
$gui = GUICreate('Form1', 610, 434, 192, 124)
GUICtrlCreateGroup('Group1', 8, 8, 593, 417)
$button = GUICtrlCreateButton('Save', 30, 320, 40, 22)
For $Ci = 0 To 13
$Checkbox[$Ci] = GUICtrlCreateCheckbox($CheckNames[$Ci], 30 + Mod($Ci, 10) * 55, 350 + Int($Ci / 10) * 24, 49, 17)
Next
GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ExitLoop
Case $button
For $i = 0 To 13
If BitAND(GUICtrlRead($Checkbox[$i]), $GUI_CHECKED) Then Call _Save()
Next
EndSwitch
WEnd
Func _Save()
For $i = 0 To 13
If BitAND(GUICtrlRead($Checkbox[$i]), $GUI_CHECKED) Then
IniWrite($ini, 'WinRAR', $CheckNames[$i], 'Ja')
Else
IniWrite($ini, 'WinRAR', $CheckNames[$i], 'Nein')
EndIf
Next
EndFunc ;==>_Save
; Ende