Sign in to follow this  
Followers 0
ITBassett

Disable Keyboard in VBScript

2 posts in this topic

I've found some references out on the web to AutoIt being able to disable input from the keyboard/mouse during a VBScript execution. These same references talk about having to register a DLL, the AutoITx3.dll and then use the following code snippet:

Set oAutoIt = CreateObject("AutoItX.Control")

oAutoIt.BlockInput "on"

When I run this VBScript using the WSH, I get "ActiveX Component can't create object: 'AutoITX.Control'"

Any thoughts on what I've possibly done wrong?

Share this post


Link to post
Share on other sites



It'd be easier just to call int BlockInput(int block) from user32.dll. That saves you the COM link if you only need one function.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0