ArrayArrayArrayArrayArrayArray
CODE: Statistics: Posted by martignasse — 26 Aug 2009, 16:54 BYTE state[256]; #define KEY_PRESSED(key) (state[key] & 0x80) GetKeyboardState(state); if (KEY_PRESSED(VK_CONTROL) && KEY_PRESSED('C')) { // CTRL-C pressed }
thanks senso
]]>
CODE:
BYTE state[256]; #define KEY_PRESSED(key) (state[key] & 0x80) GetKeyboardState(state); if (KEY_PRESSED(VK_CONTROL) && KEY_PRESSED('C')) { // CTRL-C pressed }Statistics: Posted by senso — 26 Aug 2009, 10:19
Statistics: Posted by Gizzeta — 25 Aug 2009, 23:03
CODE:
//----------------------------------------------------------------------------// keys state modifiers// used in MouseMove, MouseUp and MouseDown functions declaration (see end of file) typedef enum TShiftState { ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble };CODE:
//----------------------------------------------------------------------------// keys state modifiers// used in MouseMove, MouseUp and MouseDown functions declaration (see end of file)typedef DWORD TShiftState ;static DWORD const ssShift = 0x1static DWORD const ssAlt = 0x2static DWORD const ssCtrl = 0x4static DWORD const ssLeft = 0x8static DWORD const ssRight = 0x10static DWORD const ssMiddle = 0x20static DWORD const ssDouble = 0x40CODE:
if ((Shift & ssCtrl) !=0) {..} //means that the Ctrl key is pressedStatistics: Posted by senso — 25 Aug 2009, 22:47
Statistics: Posted by Gizzeta — 25 Aug 2009, 17:50
CODE:
BYTE state[256]; #define KEY_PRESSED(key) (state[key] & 0x80) GetKeyboardState(state); if (KEY_PRESSED(VK_CONTROL) && KEY_PRESSED('C')) { // CTRL-C pressed }Statistics: Posted by martignasse — 26 Aug 2009, 16:54
CODE:
BYTE state[256]; #define KEY_PRESSED(key) (state[key] & 0x80) GetKeyboardState(state); if (KEY_PRESSED(VK_CONTROL) && KEY_PRESSED('C')) { // CTRL-C pressed }Statistics: Posted by senso — 26 Aug 2009, 10:19
Statistics: Posted by Gizzeta — 25 Aug 2009, 23:03
CODE:
//----------------------------------------------------------------------------// keys state modifiers// used in MouseMove, MouseUp and MouseDown functions declaration (see end of file) typedef enum TShiftState { ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble };CODE:
//----------------------------------------------------------------------------// keys state modifiers// used in MouseMove, MouseUp and MouseDown functions declaration (see end of file)typedef DWORD TShiftState ;static DWORD const ssShift = 0x1static DWORD const ssAlt = 0x2static DWORD const ssCtrl = 0x4static DWORD const ssLeft = 0x8static DWORD const ssRight = 0x10static DWORD const ssMiddle = 0x20static DWORD const ssDouble = 0x40CODE:
if ((Shift & ssCtrl) !=0) {..} //means that the Ctrl key is pressedStatistics: Posted by senso — 25 Aug 2009, 22:47
Statistics: Posted by Gizzeta — 25 Aug 2009, 17:50