Mouse Change/Mouse-Keyboard Lock 
Author Message
 Mouse Change/Mouse-Keyboard Lock

Can you change the mouse icon via script to refelect the script is running?
I would like the hourglass, or even better be able to choose the mouse
cursor I want. One last question, is there any way to lock the mouse and
keyboard input via script so the user can't do anything while the script is
running? Any sample code would be appreciated.

Thanks,
Lando



Wed, 17 Aug 2005 01:54:05 GMT  
 Mouse Change/Mouse-Keyboard Lock
Have a look at this. It helps with one of your questions.

regards,

Matt


Quote:
> Can you change the mouse icon via script to refelect the script is
running?
> I would like the hourglass, or even better be able to choose the mouse
> cursor I want. One last question, is there any way to lock the mouse and
> keyboard input via script so the user can't do anything while the script
is
> running? Any sample code would be appreciated.

> Thanks,
> Lando



Wed, 17 Aug 2005 02:04:47 GMT  
 Mouse Change/Mouse-Keyboard Lock
Forgot the link... Sorry

http://www.developersdex.com/gurus/code/475.asp


Quote:
> Can you change the mouse icon via script to refelect the script is
running?
> I would like the hourglass, or even better be able to choose the mouse
> cursor I want. One last question, is there any way to lock the mouse and
> keyboard input via script so the user can't do anything while the script
is
> running? Any sample code would be appreciated.

> Thanks,
> Lando



Wed, 17 Aug 2005 02:14:34 GMT  
 Mouse Change/Mouse-Keyboard Lock

Quote:

> One last question, is there any way to lock the mouse and
> keyboard input via script so the user can't do anything while the script is
> running? Any sample code would be appreciated.

Hi

You can disable mouse and keyboard input using e.g. the AutoItX component from
a VBScript (you need to register a DLL on the target computer):

AutoIt/AutoItX is free and can be found here:
http://www.hiddensoft.com/AutoIt/

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.

This function will have different effects depending on the operating system
used:.

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/XP User input is blocked and AutoIt can simulate input.

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter



Thu, 18 Aug 2005 03:07:10 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Lock keyboard and mouse?

2. Lock Keyboard and mouse

3. Locking Keyboard/Mouse

4. Lock keyboard and mouse?

5. Keyboard and mouse lock

6. Locking keyboard and mouse input...

7. Lock Mouse & Keyboard

8. LOCK keyboard and mouse SYSTEMwide

9. Lock Keyboard & Mouse from user input

10. How to lock the keyboard or mouse in Win95

11. Locking Keyboard an Mouse

12. Program to lock keyboard and mouse with API

 

 
Powered by phpBB® Forum Software