Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 723
  • Last Modified:

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

Without pressing, how to sendmessage Hotkey"Alt + F"
0
winget
Asked:
winget
  • 4
1 Solution
 
WynCommented:
Use keybd_event.
Continue
0
 
WynCommented:
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
 
WynCommented:
null
0
 
wingetAuthor Commented:
I am very appreciated your answer.
I will act upon your valuable advice.

Thank you. Good Luck!
0
 
WynCommented:
You are welcome:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now