Example using buttons. Did not test it but should work.
This runs locally and requires kixforms (http:www.kixforms.org) and autoit to be installed. Should be easy to adept so it can run remote (still requires autoit to be installed remote).

Code:

Break On
$System = CreateObject("Kixtart.System")
;
$Form = $System.Form()
$Form.Height = 119
$Form.Text = "Example buttons..."
$Form.Width = 133
;
$Button1 = $Form.Controls.Button()
$Button1.Height = 23
$Button1.Left = 15
$Button1.Text = "Disable input"
$Button1.Top = 15
$Button1.Width = 100
$Button1.OnClick = "Disable()"
;
$Button2 = $Form.Controls.Button()
$Button2.Height = 23
$Button2.Left = 15
$Button2.Text = "Enable input"
$Button2.Top = 45
$Button2.Width = 100
$Button2.OnClick = "Enable()"
;
$Form.Show
While $Form.Visible
$=Execute($Form.DoEvents())
Loop
Exit 1
;
Function Enable()
$oAutoIt = CreateObject("AutoItX.Control")
$oAutoIt.BlockInput("off")
$oAutoIt = ""
EndFunction
;
Function Disable()
$oAutoIt = CreateObject("AutoItX.Control")
$oAutoIt.BlockInput("on")
$oAutoIt = ""
EndFunction

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.