|
-
Jan 30th, 2008, 03:40 PM
#1
Thread Starter
Member
how to disable the mouse and the keyboard
Hi
I'm working into a project , that can allow me to automate some tasks , but i don't want the user to have access to the keyboard and the mouse during this process , i have found some way to desable the mouse and the keyboard thank's to the rundll32.exe , but it doesn't works into windows xp .
Can you help me .
thank you.
-
Jan 30th, 2008, 03:48 PM
#2
Re: how to disable the mouse and the keyboard
Why don't you just set the enabled property of the form to false? Then they can't touch anything on it.
I know that if I started running something and all of a sudden, my keyboard and mouse stopped working, I'd turn off the computer and restart it, which would hose your application in the middle of running.
-
Jan 30th, 2008, 04:02 PM
#3
Thread Starter
Member
Re: how to disable the mouse and the keyboard
no , this is not what i want to do , i don't want the user to have any control during the process , because the process doesn't work on the form only , but on windows also .
-
Jan 30th, 2008, 05:54 PM
#4
Lively Member
Re: how to disable the mouse and the keyboard
Disabling the mouse and keyboard isn't the best way to handle this. Would you mind telling us more details on what this process is that would require such measures? Perhaps there is a workaround.
What if the program has problems and it crashes and the user can only shut down their computer since their mouse and keyboard are still unresponsive? Besides, I doubt you could disable the entire mouse in a VB program. I just can't imagine any computer allowing some random program to stop the mouse like that. As for the keyboard, maybe you could trick it so that the program cannot be closed and intercept the keystrokes but once again, why?
"He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever."
-
Jan 30th, 2008, 06:08 PM
#5
Thread Starter
Member
Re: how to disable the mouse and the keyboard
What i want to do is an application that automate a task , for example an application that open a soft go to a textbox simulate a reference or something else , but when doing this the user must not use the mouse, because it can generate errors , for example wrong coordinate of the cursor ....
-
Jan 30th, 2008, 09:04 PM
#6
Re: how to disable the mouse and the keyboard
Yeah, I can see why you want to disable both the keyboard and mouse. I also guess that your next question might be "how to add my application to the startup folder?" And once the 2 things are combined, the computer pretty much becomes useless.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|