Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ShiftLeft challenge 21 82
abstract class with all non abstract mentods 6 76
Trying to run powershell  in a batch file. How do I do this? 8 92
Work with App store 7 54
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

831 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