View Single Post
  #2 (permalink)  
Old February 28th, 2006, 02:03 PM
mmcdonal mmcdonal is offline
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Not with VBScript or VBA.

However you can get a 3rd party solution called AutoIt. It is free at http://www.hiddensoft.com/autoit3/index.php

To disable mouse and keyboard input:

Set oAutoIt = CreateObject("AutoItX.Control")
oAutoIt.BlockInput "on"

Input will be automatically enabled when the script closes if you don't issue an off command.

You can also simulate input (automated keyboard and mouse entries.)

You may need to reference a script to get this installed on the users' machines. See AutoItX which enhances VBScript (VBA, really.)

HTH



mmcdonal
Reply With Quote