This is NOT my work it was written by Yashied, but I wanted to share it.
Enjoy.
-Kenny
#include <WinAPI.au3>
#Include <WindowsConstants.au3>
Global $sHexKeys, $sMouse, $sString, $hHookKeyboard, $pStub_KeyProc
HotKeySet("{F3}", "ExitNow");0x72
$pStub_KeyProc = DllCallbackRegister("_KeyProc", "int", "int;ptr;ptr")
$hHookKeyboard = _WinAPI_SetWindowsHookEx($WH_KEYBOARD_LL, DllCallbackGetPtr($pStub_KeyProc), _WinAPI_GetModuleHandle(0), 0)
While 1
Sleep(10)
WEnd
Func Exi