locking mouse and keyboard?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Locked
Message
Author
tcpman
Posts: 53
Joined: 05 Mar 2014 15:01

locking mouse and keyboard?

#1 Post by tcpman » 28 Oct 2014 14:00

hi
i have a program that i need to lock and unlock the keyboard and mouse
there was a way for this using rundle32 but its not working here (i am runing win 7)
also there is a reg way for this but i did not try that yet

is this possible using windows api?
because there are some api for this in windows

Squashman
Expert
Posts: 4471
Joined: 23 Dec 2011 13:59

Re: locking mouse and keyboard?

#2 Post by Squashman » 28 Oct 2014 14:57

Really doesn't sound like a batch file question.

tcpman
Posts: 53
Joined: 05 Mar 2014 15:01

Re: locking mouse and keyboard?

#3 Post by tcpman » 29 Oct 2014 04:02

my main target is to disable all of hotkeys and make program uncloseable

npocmaka_
Posts: 512
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: locking mouse and keyboard?

#4 Post by npocmaka_ » 29 Oct 2014 08:37

tcpman wrote:my main target is to disable all of hotkeys and make program uncloseable


Why you don't create a service?

tcpman
Posts: 53
Joined: 05 Mar 2014 15:01

Re: locking mouse and keyboard?

#5 Post by tcpman » 29 Oct 2014 12:24

what do you mean?
you mean i create a service for this?how?

my program has a password that user must know it to close my program
now the user can simpley use mouse to exit my program or he could use hot key to bring up task manger and using task manger close my program

Compo
Posts: 599
Joined: 21 Mar 2014 08:50

Re: locking mouse and keyboard?

#6 Post by Compo » 29 Oct 2014 17:57

I would be more worried that you have created a program that people want to close!

I would also be very suspicious of any program which attempts to prevent me from closing it and so probably would a number of anti-malware applications.

What happens if your program is running and I wish to use one or more other applications on my PC in one of my other screens as well. It's a fairly old concept called multi-tasking and is probably the main selling point of PC's over mobile tech!

ALbino
Posts: 29
Joined: 23 Oct 2014 19:27

Re: locking mouse and keyboard?

#7 Post by ALbino » 29 Oct 2014 20:22

Sounds like a virus.

tcpman
Posts: 53
Joined: 05 Mar 2014 15:01

Re: locking mouse and keyboard?

#8 Post by tcpman » 30 Oct 2014 00:31

its not virus
like i said there is a password that user must enter it
so then when he enter the password he can use computer
i want to use this on few computer so just the pepole that have passwords be able to use it
its like a desktop locker

windows its self has something for this
so you can choice a password for your windows and user must know the password to enter the computer
but i dont want use this as my desktop locker

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: locking mouse and keyboard?

#9 Post by foxidrive » 30 Oct 2014 04:48

Thread locked as it's not related to a batch script.

EDIT: Just clarifying here that it cannot be done in batch.

Locked