forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Disable Mouse and Keyboard -- Any Ideas?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
VDSuser
Contributor
Contributor


Joined: 21 Mar 2002
Posts: 58
Location: Somewhere in time

PostPosted: Tue May 31, 2005 5:42 pm    Post subject: Disable Mouse and Keyboard -- Any Ideas? Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue May 31, 2005 5:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
VDSuser
Contributor
Contributor


Joined: 21 Mar 2002
Posts: 58
Location: Somewhere in time

PostPosted: Tue May 31, 2005 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Wed Jun 01, 2005 7:49 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Jun 01, 2005 8:26 am    Post subject: Reply with quote

To disable (most of the) keys of the keyboard, just create hotkeys for all of them... Smile When the users presses a button, the HOTKEY event is triggered, after which you can just ignore it. Smile 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... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Wed Jun 01, 2005 3:25 pm    Post subject: Reply with quote

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. Smile

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
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Jun 02, 2005 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jrmarquart
Valued Newbie


Joined: 12 Jun 2004
Posts: 28
Location: Boise, ID

PostPosted: Fri Jun 03, 2005 7:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
suxi
Newbie


Joined: 16 Jan 2005
Posts: 23

PostPosted: Wed Dec 07, 2005 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message
roger2005
Newbie


Joined: 08 Dec 2005
Posts: 1

PostPosted: Thu Dec 08, 2005 2:23 pm    Post subject: Reply with quote

You may try this from VDS..

RunDll32.exe KEYBOARD,disable
RunDll32.exe MOUSE,disable
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Dec 09, 2005 2:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group