Hallo ich weiß es gibt schon paar einträge über blockinput (gegooglet hab ich auch)
und ich kommt nicht weiter ich hab jetzt :
Aber irgendwie kann ich die maus bewegen und die Tastatur funktioniert auch
is irgendwas falsch ode regth es einfach nicht?
und ich kommt nicht weiter ich hab jetzt :
VB.NET-Quellcode
- Private Declare Function BlockInput Lib "user32" (ByVal fBlock _
- As Long) As Long
- Const API_FALSE As Long = 0&
- Const API_TRUE As Long = 1&
- If System.IO.File.Exists(My.Settings.laufwerk + My.Settings.pfad + My.Settings.dateiname + ".txt") Then
- BlockInput(API_FALSE)
- Label1.Text = "PC ENTSPERRT!"
- Label1.ForeColor = Color.Green
- Timer1.Enabled = False
- Else
- BlockInput(API_TRUE)
- Label1.Text = "PC GESPERRT!"
- Label1.ForeColor = Color.Red
- End If
Aber irgendwie kann ich die maus bewegen und die Tastatur funktioniert auch
is irgendwas falsch ode regth es einfach nicht?