Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 721
  • 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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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