Sign in to follow this  
Followers 0
lebisol

Disable Keybaord And Mouse

6 posts in this topic

#1 ·  Posted (edited)

Hello People!

1st. many thanx for this great utility!

As other beginers, I too have a rather "stupid" question....

Is it possbile to disable user's keybaord/mouse/any script interferance while script is running?

I am using V 2.6....any ideas?

Much apprechiated!

Edited by lebisol

Share this post


Link to post
Share on other sites



BlockInput,on

Just be careful that in W98/ME and WNT pre SP 6 it stops also Autoit symulated input and in W95 have no effect.

But if you have not the need to emulate key, it just work fine.

Share this post


Link to post
Share on other sites

Was there a BlockInput-command in the 2.x-versions ?

Hmm...can't remember..

Anyway, there is also some RunDLL-command that can lock both

keyboards and mouse..

Can't remember them though..

Share this post


Link to post
Share on other sites

Helge, yes, BlockInput was in 2.xx as well.

Share this post


Link to post
Share on other sites

Ripped from help file.

BlockInput, <on | off>

This command with disable both mouse and keyboard input. This only works on various operating system configurations as indicated below:

Operating System "BlockInput" Results

Windows 95 No effect.

Windows 98 User input is blocked but AutoIt is also unable to simulate input.

Windows NT 4 (Without ServicePack 6) No effect.

Windows NT 4 (With ServicePack 6) User input is blocked and AutoIt can simulate input.

Windows 2000 User input is blocked and AutoIt can simulate input.

Input will be automatically enabled when the script closes.

That show how I was wrong about Windows NT :whistle:B)

Share this post


Link to post
Share on other sites

Hello People!

Many thanx for the quikc respond!

This "little" utility keeps imressing me every time I find use for it!

Great stuff! :whistle:

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0