| View previous topic :: View next topic |
| Author |
Message |
VDSuser Contributor


Joined: 21 Mar 2002 Posts: 58 Location: Somewhere in time
|
Posted: Tue May 31, 2005 5:42 pm Post subject: Disable Mouse and Keyboard -- Any Ideas? |
|
|
I do quite a bit of remote desktop support. It gets really irritating when a user at the other end hijacks my remote session or unceremoniously boots me off. I need a way to temporarily disable the mouse and keyboard while I'm working on the PC via remote.
There's a great registry setting that does the trick, but it requires a reboot to disable the devices and another reboot to enable them. Not a good option.
There's a Windows call named BlockInput() -- does anyone know how to use it within VDS?
Are there other ways to remotely disable the mouse and keyboard?
Any help is appreciated. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue May 31, 2005 5:53 pm Post subject: |
|
|
If you use Ultr@VNC to remote control the machine then I seem to rememeber there is a setting that will do that. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
VDSuser Contributor


Joined: 21 Mar 2002 Posts: 58 Location: Somewhere in time
|
Posted: Tue May 31, 2005 6:05 pm Post subject: |
|
|
Thanks for the speedy reply.
The Dameware Utilities have the function, as well, but we use neither Dameware nor VNC.
I'm really looking for a way to disable the devices from within a VDS program. Ideally, the local mouse and keyboard would become disabled when the program launched; the program then would do other things, and, upon exiting, the mouse and keyboard would be restored. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Jun 01, 2005 7:49 am Post subject: |
|
|
You probably have to some low level system thing, possibly it can only be done using drivers. Not the kind of thing VDS was designed for.
I suggest you search for help on this using Google. You might turn up some code using C or another language, but it will probably be a hard search because I don't suppose C programmers need to do this very often either. Then you will have to find a way to implement it from VDS.
Changing to use Ultr@VNC might be easier... _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Jun 01, 2005 8:26 am Post subject: |
|
|
To disable (most of the) keys of the keyboard, just create hotkeys for all of them... When the users presses a button, the HOTKEY event is triggered, after which you can just ignore it. I have no idea how to disable the mouse, but you might be able to use the vdsdll28, which is able to set a specific region for the mouse which it can't leave. Just choose a position which can do no harm, like on the taskbar...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Jun 01, 2005 3:25 pm Post subject: |
|
|
The problem with that approach - apart from the sheer kludginess of it! - is that it will probably disable the keyboard and mouse actions being made from the remote controller as well.
I think it has to be a function of the remote control server, which has probably installed hooks already so it can intercept the keyboard and mouse actions and relay them to the client if required. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jun 02, 2005 2:16 am Post subject: |
|
|
Skit,
Jules is right. The best way to disable the keyboard and mouse through software is to use a driver. The only other way I know of would be to remap the keyboard keys to other keys and capture the mouse to a 2x2 pixel area of the screen. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
jrmarquart Valued Newbie
Joined: 12 Jun 2004 Posts: 28 Location: Boise, ID
|
Posted: Fri Jun 03, 2005 7:47 pm Post subject: |
|
|
For a non-vds solution you could use AutoIT, a freeware program found here: http://www.autoitscript.com/autoit3/index.php
AutoIt has the function:
BlockInput, On|Off (which blocks keyboard and mouse input - plus it does not require a reboot)
I believe AutoIT will allow you to compile a small .exe and you could call this from a VDS program. Not the cleanist solution, but it should work for your needs. |
|
| Back to top |
|
 |
suxi Newbie
Joined: 16 Jan 2005 Posts: 23
|
Posted: Wed Dec 07, 2005 8:33 am Post subject: |
|
|
Has anyone found a VDS solution for this? I have a simular problem. I am moving windows and sliders of a game around from within VDS and if the user moves the mouse during that processs, the mouse movements cause errors and don't work.
Have a nice day everyone
suxi |
|
| Back to top |
|
 |
roger2005 Newbie
Joined: 08 Dec 2005 Posts: 1
|
Posted: Thu Dec 08, 2005 2:23 pm Post subject: |
|
|
You may try this from VDS..
RunDll32.exe KEYBOARD,disable
RunDll32.exe MOUSE,disable |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Dec 09, 2005 2:28 am Post subject: |
|
|
| roger2005 wrote: | You may try this from VDS..
RunDll32.exe KEYBOARD,disable
RunDll32.exe MOUSE,disable |
This does not work under my Windows XP Pro with SP2 _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|