Jump to content
  • Advertisement
Sign in to follow this  
Trashcann

VB6: Postmessage and Alt+F

This topic is 5040 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to use postmessage to trigger a menu bar (like Alt-F), but no matter how much I search, I keep finding an answer that does not work. I have copied the wparam and lparam from spy++ for the Alt-F, and it still doesn't work. When I click 'postmessage', it just dings the speaker. So far I have gathered that it may be due to fAltDown not being set when I postmessage, but nothing seems to work to set that. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
i'm not big on VB and i don't have it installed right now, but in VC++ you'd want to post wParam = "F" and lParam = 536870912. or setting 30th bit of an integer to one (if you need to AND). let me know if this works.

Share this post


Link to post
Share on other sites
What message do you use ? I did not test it but I would use the WM_SYSKEYDOWN message (or simple : the WM_SYSCHAR).

wParam is VK_F and bit 29 of the lParam is 1 (other bits : just look at spy++)

HTH,

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!