Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Disabling Keyboard and Mouse

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,23948
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Disabling Keyboard and Mouse
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Disabling Keyboard and Mouse - 7/22/2005 10:52:32 AM   
  jsou

 

Posts: 24
Score: 0
Joined: 7/22/2005
Status: offline
Is there anyway to disable the mouse and keyboard while a script is running?
 
 
Post #: 1
 
 RE: Disabling Keyboard and Mouse - 7/22/2005 12:14:46 PM   
  tnoonan

 

Posts: 364
Score: 0
Joined: 12/14/2004
From:
Status: offline
This is what I use to lock keboard and mouse on remote workstation. Here is the readme. I can't find the site I download if from but if you email me I will email it to you.

README for DOBLOCK.EXE
======================
What is DOBLOCK good for?
-------------------------
DOBLOCK is a little Win32 command line utility that
can lock and release mouse and keyboard at runtime.
It can be used for example during software installations
where a user should be prevented from clicking around or
pressing a cancel-button.

Usage
-----
DOBLOCK is executed from the commandline. So it can be used
in batch files, vbscripts, etc.
There are two methods of invoking DOBLOCK:
1. doblock.exe {block|unblock|?|test [<seconds>]}
Where the arguments have the following meanings:
* block - locks keyboard and mouse
* unblock - release keyboard and mouse lock
* ? - display usage
* test [seconds] - locks keyboard and mouse for the specified
                 number of seconds. If seconds is omitted,
                 lockduration is 10 seconds.
2. doblock.exe run <command> <param 1> ... <param n>
Locks keyboard and mouse and executes the specified command.
Any given additional parameters are passed to the executed command.
The command then runs with mouse and keyboard locked. After 
termination, the peripherals are automatically released.

Restrictions
------------
CTRL-ALT-DEL is not blocked.
Pressing these keys while the keyboard is locked, relases mouse and
keyboard.

License
-------
DOBLOCK is licensed as freeware and can be used and distributed
freely.
See LICENSE.TXT for details.

Contact
-------
If you got any comments or questions regarding DOBLOCK, please
feel free to contact us under info@nwc-services.de

< Message edited by tnoonan -- 7/22/2005 12:18:17 PM >


_____________________________

If you can conceive it you can achieve it
___________________________________

www.spoogenet.com

(in reply to jsou)
 
 
Post #: 2
 
 RE: Disabling Keyboard and Mouse - 7/22/2005 12:21:45 PM   
  tnoonan

 

Posts: 364
Score: 0
Joined: 12/14/2004
From:
Status: offline
Here I put it on my website so you may download it. Please read and follow the license.txt. ;o)

http://www.spoogenet.com/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=40

_____________________________

If you can conceive it you can achieve it
___________________________________

www.spoogenet.com

(in reply to tnoonan)
 
 
Post #: 3
 
 RE: Disabling Keyboard and Mouse - 7/25/2005 1:52:17 AM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
Check out AutoIT, www.hiddensoft.com, which has commands to disable the mouse/keyboard.  I have not used them myself, but have found other commands from AutoIT to be pretty useful.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to tnoonan)
 
 
Post #: 4
 
 RE: Disabling Keyboard and Mouse - 7/25/2005 12:14:36 PM   
  tnoonan

 

Posts: 364
Score: 0
Joined: 12/14/2004
From:
Status: offline
Thanks mbouchard, I was going to mention that as well but forgot cause I don't use it but did Know it would work for his problem.

_____________________________

If you can conceive it you can achieve it
___________________________________

www.spoogenet.com

(in reply to mbouchard)
 
 
Post #: 5
 
 RE: Disabling Keyboard and Mouse - 10/29/2008 4:06:13 AM   
  enriqueeeee

 

Posts: 1
Score: 0
Joined: 10/29/2008
Status: offline
quote:

ORIGINAL: tnoonan

Here I put it on my website so you may download it. Please read and follow the license.txt. ;o)

http://www.spoogenet.com/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=40


the tool if any one is looking

http://web.archive.org/web/20061117111415/http://www.spoogenet.com/index.php?module=documents&JAS_DocumentManager_op=viewDocument&JAS_Document_id=40

(in reply to tnoonan)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Disabling Keyboard and Mouse Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts