Solved

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

Posted on 2000-03-18
5
688 Views
Last Modified: 2013-11-20
Without pressing, how to sendmessage Hotkey"Alt + F"
0
Comment
Question by:winget
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 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