Guest User

...

a guest
Jun 5th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2. 'Timer Code
  3.    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  4.         If GetAsyncKeyState(121)
  5.             MsgBox("Test")
  6.         End If
  7.     End Sub
  8. 'Module Code
  9. Module Module1
  10.     Public Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer
  11. End Module
Advertisement
Add Comment
Please, Sign In to add comment