PostMessage Problem
-
I want to send ALT + S to an application, ive tried: PostMessage ( hHandle , WM_SYSCHAR , 's' , 0 ); What im i doing wrong cos its not working Papa Murex Co. while (TRUE) Papa.WillLove ( Bebe ) ;
-
Try passing 0x20000000 as lParam value. According to the docs, that defines the ALT key as being pressed.
Look! They have the Internet on computers now! (Homer J. Simpson)
-
I want to send ALT + S to an application, ive tried: PostMessage ( hHandle , WM_SYSCHAR , 's' , 0 ); What im i doing wrong cos its not working Papa Murex Co. while (TRUE) Papa.WillLove ( Bebe ) ;
-
yeah ok, but what message to send?? is there a VK_ALT cos i didnt find any Papa Murex Co. while (TRUE) Papa.WillLove ( Bebe ) ;
-
-
Yes, but please, if i want to state that the keyboard event is the ALT Key, how should i do that? Papa Murex Co. while (TRUE) Papa.WillLove ( Bebe ) ;
Should be something like
keybd_event( VK_MENU,0,KEYEVENTF_EXTENDEDKEY,0);
keybd_event( 's',0,0,0);
// 'release' the keys
keybd_event( 's',0,KEYEVENTF_KEYUP,0);
keybd_event( VK_MENU,0,KEYEVENTF_EXTENDEDKEY|KEYEVENTF_KEYUP,0);...make it about Visual C++, and don't ever mention Visual Basic. Nick Hodapp (MSFT) in Semicolon[^]
-
Should be something like
keybd_event( VK_MENU,0,KEYEVENTF_EXTENDEDKEY,0);
keybd_event( 's',0,0,0);
// 'release' the keys
keybd_event( 's',0,KEYEVENTF_KEYUP,0);
keybd_event( VK_MENU,0,KEYEVENTF_EXTENDEDKEY|KEYEVENTF_KEYUP,0);...make it about Visual C++, and don't ever mention Visual Basic. Nick Hodapp (MSFT) in Semicolon[^]