Reference/EnableWindow

From NSIS Wiki
Jump to navigationJump to search

EnableWindow

hwnd (1|0)

Enables or disables mouse and keyboard input to the specified window or control. Possible states are 0 (disabled) or 1 (enabled).

GetDlgItem $0 $HWNDPARENT 1
EnableWindow $0 0
Sleep 1000
EnableWindow $0 1

Command introduced with NSIS v2.0