You should fucking explain what you exactly want. Global Keyboard Hooking?
//Edit
Something like that?:
Code:
[DllImport("User32.dll")]
private static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey);
[DllImport("User32.dll")]
private static extern short GetAsyncKeyState(System.Int32 vKey);
public const int VK_F1 = 0x70;
long RetF1 = 0;
public const int VK_F2 = 0x71;
long RetF2 = 0;
public const int VK_F3 = 0x72;
long RetF3 = 0;
public const int VK_F4 = 0x73;
long RetF4 = 0;
public int chat_offset = 0xB3A284;
public int F1_count = 0;
public int F2_count = 0;
public int F3_count = 0;
public int F4_count = 0;
if (Convert.ToBoolean(RetF1 & 0x8000))
{
//F1 pressed.
}
else if (Convert.ToBoolean(RetF2 & 0x8000))
{
//F2 pressed
}
else if (Convert.ToBoolean(RetF3 & 0x8000))
{
//F3 pressed.
}
else if (Convert.ToBoolean(RetF4 & 0x8000))
{
//F4 pressed
}