Hi all,
Knowing that:-
Code:
Private Const VK_SHIFT = &H10
Private Const VK_CONTROL = &H11
and
Code:
Public Function IsShiftPressed() As Boolean
IsShiftPressed = (GetAsyncKeyState(VK_SHIFT) < 0)
End Function
Public Function IsCtrlPressed() As Boolean
IsCtrlPressed = (GetAsyncKeyState(VK_CONTROL) < 0)
End Function
with
Code:
if IsShiftPressed() Then someAction
if IsShiftCtrl() Then someAction
...will determin the condition of each individual key state.
How are they put together to determin if both shift & control are pressed at the same time????