I would like to implement a function like this:
My program is running in the background, and register a hotkey associated with a hardware button. when the button was pressed, my program will send a "Ctrl+C" to the foreground program(for example PocketWord). the key function is like this:
void SendCtrlC()
{
keybd_event(...);
keybd_event(...);
...
Sleep(0);
}
The code works perfect under PPC 2002 emulator, but just won't work under my IPaq! Anyone can give me some hints?