Solved

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

Posted on 2000-03-18
5
636 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 3 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 78
sameEnds challenge 3 107
zeroMAx challenge 20 77
mapAB Challlenge 35 89
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

10 Experts available now in Live!

Get 1:1 Help Now