How to read keyboard inputs from other apps or just in general.

How to read keyboard inputs from other apps or just in general.

Now the Event OnKeyDown only reads keys that is local in application so to say.

I wan't a code that can read it globally like forexample winamp can do. It will be like an Global Hotkey or like how an keylogger reads things.

Also can someone tell me how to simulate an keypressdown from the user.

This is to simulate a mouseclick. So right now im searching winuser.h
[code]void __fastcall TForm1::Button5Click(TObject *Sender)
{
mouse_event(MOUSEEVENTF_MOVE,-500,0,0,0);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
}[/code]

Thanks in pre-advance.
//ColacX
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories