Hello,
I'm working on a small automation solution. I want to emulate
Keystrokes from an application including shift and alt key.
h = FindWindow (NULL, argv[1]);
if (h != NULL)
{
hed = FindWindowEx (h,0,"edit",0);
SendMessage (hed, WM_CHAR, kbchar, 0);
}
or
h = FindWindow (NULL, argv[1]);
if (h != NULL)
{
PostMessage (h, WM_CHAR, kbchar, 0);
}
doesn't do the trick for me. I need to send stuff like "CTRL+P" to an
appliction. Any Ideas how to do that in C? Every help is appreciated .