Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

PostMessage parameters for the F7 key

Posted on 2001-07-16
1
509 Views
Last Modified: 2013-12-03
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?
0
Comment
Question by:Ashurbanipal
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 6286728
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

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question