C# program to block user input(both mouse and keyboard) until a specific keyword(password) is entered
-
HI!! i was thinking abt such a program which can block the inputs from keyboard n mouse until i enter the password... is such a program possible or m just thinking haywire... plz guide me... and one more thing can i control the flow of data from a USB Drive. I mean no data should move automatically (viruses) from USB to PC and vice-versa. if user initiates a copy/move operation, the data can move... Can i???
-
HI!! i was thinking abt such a program which can block the inputs from keyboard n mouse until i enter the password... is such a program possible or m just thinking haywire... plz guide me... and one more thing can i control the flow of data from a USB Drive. I mean no data should move automatically (viruses) from USB to PC and vice-versa. if user initiates a copy/move operation, the data can move... Can i???
ayandelhi wrote:
block the inputs from keyboard n mouse until i enter the password.
and how are you going to enter the password? :omg: :wtf:
ayandelhi wrote:
I mean no data should move automatically
You mean no illegal data immigrants ;P :-O
Yusuf May I help you?
-
ayandelhi wrote:
block the inputs from keyboard n mouse until i enter the password.
and how are you going to enter the password? :omg: :wtf:
ayandelhi wrote:
I mean no data should move automatically
You mean no illegal data immigrants ;P :-O
Yusuf May I help you?
Reminds me of the POST message "No keyboard detected. Press F1 to continue." :laugh:
Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis The only valid measurement of code quality: WTFs/minute.
-
HI!! i was thinking abt such a program which can block the inputs from keyboard n mouse until i enter the password... is such a program possible or m just thinking haywire... plz guide me... and one more thing can i control the flow of data from a USB Drive. I mean no data should move automatically (viruses) from USB to PC and vice-versa. if user initiates a copy/move operation, the data can move... Can i???
Hmm - takes no programming: Ctrl+Alt+Del, then hit Enter. I think it's called the Windows logon screen. :-D
-
ayandelhi wrote:
block the inputs from keyboard n mouse until i enter the password.
and how are you going to enter the password? :omg: :wtf:
ayandelhi wrote:
I mean no data should move automatically
You mean no illegal data immigrants ;P :-O
Yusuf May I help you?
that is wat i was thinking.. but what if the application in pace of blocking the input simply does nothing on the inputs until a specific combination like ctrl+p is pressed to enter password... but the mouse still remains inactive.. no other key should be able to work.. like alt+tab which is used to change minimized windows should not be able to work... win button should be deactivated... and many more like it... so tell me... and the USB stuff... i want to to monitor the data which moves without user involvement... viruses just copy them self from usb to pc and fro.. this is very annoying...
-
HI!! i was thinking abt such a program which can block the inputs from keyboard n mouse until i enter the password... is such a program possible or m just thinking haywire... plz guide me... and one more thing can i control the flow of data from a USB Drive. I mean no data should move automatically (viruses) from USB to PC and vice-versa. if user initiates a copy/move operation, the data can move... Can i???
Should be pretty easy with some sort of low level hook that blocks input. If the password is x chars long, just keep the last x chars in memory but block them from going any further. If the last x chars match the password, allow any subsequent mouse or keyboard input to go through. This[^] article should provide a good starting point. The faq also explains how to block keyboard input.
-
Hmm - takes no programming: Ctrl+Alt+Del, then hit Enter. I think it's called the Windows logon screen. :-D