Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 58
pre4 challenge 19 94
matchUp  challenge 9 94
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 198
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

863 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

22 Experts available now in Live!

Get 1:1 Help Now