0

can someone explain to me what does below code do??

keybd_event(VK_MENU,0x38,0,0); 
keybd_event(VK_RETURN,0x1c,0,0); 
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0); 
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
3
Contributors
2
Replies
4
Views
13 Years
Discussion Span
Last Post by Narue
0

keybd_event() is a Windows API call ...

The keybd_event function synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message. The keyboard driver's interrupt handler calls the keybd_event function.

VOID keybd_event(
BYTE bVk, // virtual-key code
BYTE bScan, // hardware scan code
DWORD dwFlags, // flags specifying function options
DWORD dwExtraInfo // additional keystroke data
);

0

>can someone explain to me what does below code do??
It simulates the Alt+Enter keystroke that puts an application into full screen mode.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.