Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Without pressing, how to sendmessage Hotkey"Alt + F"

Posted on 2000-03-18
5
Medium Priority
?
717 Views
Last Modified: 2013-11-20
Without pressing, how to sendmessage Hotkey"Alt + F"
0
Comment
Question by:winget
  • 4
5 Comments
 
LVL 5

Expert Comment

by:Wyn
ID: 2632600
Use keybd_event.
Continue
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2632605
void SendHotkey()
{
keybd_event(VK_ALT, 0, 0, 0);
keybd_event('F', MapVirtualKey('F',0), 0, 0);
keybd_event('F', MapVirtualKey('F',0), KEYEVENTF_KEYUP, 0);
keybd_event(VK_ALT,0,KEYEVENTF_KEYUP, 0);
}

Btw:winget ,you'd use 50pts for simple question,100 for moderate and 200 for hard.Otherwise,no experts will take a look and question hard to get solved.
Regards
0
 
LVL 5

Accepted Solution

by:
Wyn earned 12 total points
ID: 2632609
null
0
 

Author Comment

by:winget
ID: 2633076
I am very appreciated your answer.
I will act upon your valuable advice.

Thank you. Good Luck!
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2633375
You are welcome:)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

886 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