[VB] Events out Form ?
#6

This is what I had lying around, you'll find various other methods on the internet.

Код:
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vkey As Int32) As UShort

'Timer interval: less than 50ms is good to catch most clicks.
'Run it on a seperate thread if you don't want to lag out form drawing.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    If GetAsyncKeyState(&H1) And 1 Then
       MsgBox("X")
    End If
End Sub
Reply


Messages In This Thread
[VB] Events out Form ? - by ServerScripter - 13.08.2013, 14:17
Re: [VB] Events out Form ? - by God'Z War - 13.08.2013, 14:54
Re: [VB] Events out Form ? - by DoubleOG - 13.08.2013, 14:57
Re: [VB] Events out Form ? - by sleepysnowflake - 13.08.2013, 15:16
Re: [VB] Events out Form ? - by ServerScripter - 13.08.2013, 16:25
Re: [VB] Events out Form ? - by iPLEOMAX - 13.08.2013, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)