Solved

PostMessage parameters for the F7 key

Posted on 2001-07-16
1
483 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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now