
Originally Posted by
NGT.Rock
still not working

Okay this works for me:
Use this import (add it above "Public Class Form1")
[php]
Imports System.Runtime.InteropServices
[/php]
Then remove your current "GetAsyncKeyState" declaration and add this
[php]
<DllImport("user32.dll")> _
Private Shared Function GetAsyncKeyState(ByVal vKey As Integer) As UShort
End Function
[/php]
Then change your hotkey timer code to this:
[php]
dim hotkey1, hotkey2 as boolean
hotkey1 = GetAsyncKeyState(Keys.F1)
hotkey2 = GetAsyncKeyState(Keys.F2)
if hotkey1 = True then
Button1_Click(sender, e)
Else if hotkey2 = True then
Button2_Click(sender, e)
End if
[/php]