disables mouse and keyboard input for a window.
DisableW wh%
wh%:integer expression
Disables mouse and keyboard input for the window specified in wh%, EnableW enables them.
wh% can be a window number (OpenW, ChildW, ParentW) or an API window handle.
OpenW 1
Ocx Command cmd = "Click Me", 100, 50, 100, 22
DisableW 1
Print "Window Disabled - Status = "; Enabled?(1)
Local t As Double = Timer
While Timer - t < 5
Print AT(1, 2); "Window disabled for "; Int(5.99 - (Timer - t)); " seconds"
Wend
EnableW 1
Print "Window Re-enabled - Status = "; Enabled?(1)
Do : Sleep : Until Me Is Nothing
Sub cmd_Click
Message "Button Clicked"
EndSub
{Created by Sjouke Hamstra; Last updated: 04/10/2014 by James Gaite}