PostMessage parameters for the F7 key

I need to put a message in the message queue that is identical to the F7 key being pressed.  I assume I use PostMessage, what would the parameters be?
AshurbanipalAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
Use

keybd_event( VK_F7, 0, 0, 0);

or

INPUT i;

i.type = INPUT_KEYBOARD;
i.ki = { VK_F7, 0, 0, 0};
 
SendInput ( 1, &i, sizeof ( INPUT));
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.