I am trying to develop a code for myself, so a popup on my screen notifies me if my capslock button has been accidently pressed (because i dont have any way of knowing), which can get kind of anoying. But my code isnt exactly doing what i want:
Now to me, that code looks fine, but it only tells me if caps lock is on... any help please?
VB.NET:
If Control.IsKeyLocked(Keys.CapsLock) = True Then
Now = "on"
If Now = Origional Then
Exit Sub
ElseIf Now <> Origional Then
MsgBox("Caps has been turned on!")
Origional = Now
End If
ElseIf Control.IsKeyLocked(Keys.CapsLock) = False Then
Now = "off"
If Now = Origional Then
Exit Sub
ElseIf Now <> Origional Then
MsgBox("Caps has been turned off!")
Origional = Now
End If
End If
Now to me, that code looks fine, but it only tells me if caps lock is on... any help please?