ALT code
-
hi all, i wanted to simulate pressing ALT by keybd_event() but i dont know the code , or if it is a virtual key. does any1 know code or virtual_key value? thnx
-
WM_SYSKEYDOWN.If u use it in PreTranslateMessage: BOOL CTest::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_SYSKEYDOWN && pMsg->wParam == VK_..something..) { // TO DO:.... } return CDialog::PreTranslateMessage(pMsg); }
-
lol,i wanted the something in "VK_something" , my question's answer is : the alt code is (for example) VK_ALT ! or something like that , i know how to get other keys like VK_Shift , but there is nothing about ALT key in my book :(
-
I answered WM_SYSKEYDOWN if you use it in PreTranslateMessage, not VK_something. But you want to simulate. -- modified at 6:43 Saturday 10th November, 2007