I was experimenting around and tried to make it so that if someone presses the F key on their keyboard it also sends the rest of the letters to complete F*** anytime someone presses that letter... I know it's cruel but I just want to mess around with my friend and send it to him, hahaha... I know that the 32 to 128 is wrong, but I dont know what the # for F is.... It's probably more messed up than just that so someone please help me!
[CODE=vbnet]Public Class Form1
Private Declare Function GetKeyState Lib "user32" (ByVal vKey As Integer) As Integer
Dim Result As Integer
Dim i As Double
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
For i = 32 To 128
Result = GetKeyState(i)
If Result = -32767 Then
SendKeys.Send(" UCK")
End If
Next i
End Sub
End Class[/CODE]
[CODE=vbnet]Public Class Form1
Private Declare Function GetKeyState Lib "user32" (ByVal vKey As Integer) As Integer
Dim Result As Integer
Dim i As Double
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
For i = 32 To 128
Result = GetKeyState(i)
If Result = -32767 Then
SendKeys.Send(" UCK")
End If
Next i
End Sub
End Class[/CODE]
Comment