Looking for a way to lock keyboard.

Happy New Year

New Member
Joined
Sep 26, 2010
Messages
20
I have some display systems in my office. I cannot lock the computers in a room yet but untill then I need a way to lock the keyboard and mouse buttons. Not the pointer.


Below is the only thing i have found but only locks for this program. To add to this Debuging can lead to a lot of rebooting? I my be over my head with this.


I tried start:

PublicClass Form1
PublicDeclareFunction apiBlockInput Lib"user32"Alias"BlockInput" (ByVal fBlock AsInteger) AsInteger


PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

apiBlockInput(1)
System.Threading.Thread.Sleep(100000)
apiBlockInput(0)
End
EndSub

PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
apiBlockInput(0)
EndSub
EndClass


.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,225,543
Messages
6,185,541
Members
453,301
Latest member
jackcolasu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top