Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PostMessage Usage

Status
Not open for further replies.

19721972

Programmer
Nov 8, 2002
4
US
Hi all,

I need to simulate the Alt-F key stroke. Can I do that using PostMessage(hWnd,WM_KEYDOWN,?,?) function? I try to do it, but the lParam and wParam do not seem to match and it does not work. I can tell that a key stroke was sent but, not the Alt-F

Thanks in advance
Vu
 
You need to send the WM_SYSKEYDOWM message.
Greetings,
Rick
 
Hi Rick,

Thanks for replying. I got it working.

Vu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top