Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstants.au3>
- $hWnd = GUICreate("")
- $cEdit = GUICtrlCreateEdit("", 5, 5, 200, 100)
- $cButton = GUICtrlCreateButton("OK", 5, 210, 60, 20)
- $cInput = GUICtrlCreateInput("Test", 210, 5, 80, 20)
- GUISetState()
- _DisableAllControls($hWnd, $cEdit, $cInput)
- While GUIGetMsg() <> -3
- WEnd
- Func _DisableAllControls($hWnd_Disable, $cStart, $cEnd, $bDisable = True)
- GUISwitch($hWnd_Disable)
- For $iID = $cStart To $cEnd
- GUICtrlSetState($iID, $GUI_ENABLE * (1 + $bDisable))
- Next
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement