<System.Runtime.InteropServices.DllImport("user32.dll")> _
Private Shared Function GetAsyncKeyState(ByVal vkey As System.Windows.Forms.Keys) As Short
End Function
Dim *name of ur hotkey* As Boolean = GetAsyncKeyState(Keys.F4)
Private Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Integer) As Integer
Private Sub ShutdownTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShutdownTimer.Tick
If GetKeyPress(Keys.Escape) Then
Me.Close()
End If
End Sub
If GetAsyncKeyState(vbKeyLButton) then
mouse_event MOUSEEVENTF_MIDDLEDOWN, 0, 0, 0, 0
sleep & text1.text 'for ms settings
mouse_event MOUSEEVENTF_MIDDLEUP, 0, 0, 0, 0
end if