AW: Screenshot des aktiven Fenster genau wie Alt+Druck
2. Okt 2015, 09:19
To simulate the ALT-PRINTSCREEN keyboard combination use this line i.e. to capture the active window:
keybd_event(VK_SNAPSHOT, 1, 0, 0);
To simulate the PRINTSCREEN keyboard button press use this line i.e. to capture the entire screen:
keybd_event(VK_SNAPSHOT, 0, 0, 0);
|