Hallo,
ich bins mal wieder XD und ich hab ein problem mit meinem script,
ich möchte gern per Passworteingabe eine checkbox freigeben weiss aber nicht wie
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 445, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("test", 48, 8, 137, 33)
GUICtrlSetState(-1, $GUI_DISABLE)
$Button1 = GUICtrlCreateButton("Funtionen Freigabe", 32, 64, 105, 49, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Function()
EndSwitch
WEnd
Func Function()
$pw = InputBox( "Password", "Bitte Eingeben :D", "","*", 230 , 120)
If $pw = "1234" Then
msgbox(0,"","Right PW - Funktion will be unlocked")
Else
msgbox(0,"","wrong pw")
Exit
EndIf
EndFunc
Danke schonmal voraus ![]()