Hey there folks--
I'm trying to use GetKeyState in a command button's click event to detect if the user did a Shift-Click or just a regular click.. I'm testing with this code in a click event
I'm getting this following output:
[tt]
click 0
shift-click 65409
shift-click -127
shift-click -127
click 1
click 1
shift-click 65408
shift-click -128
shift-click -128
click 0
[/tt]
is this normal? do i need to test for (GetKeyState() < 0 or GetKeyState() > 1)?
thanks
-- frank~
I'm trying to use GetKeyState in a command button's click event to detect if the user did a Shift-Click or just a regular click.. I'm testing with this code in a click event
Code:
#DEFINE k_SHIFT 0x10
DECLARE INTEGER GetKeyState IN WIN32API INTEGER
?getkeystate(k_SHIFT)
I'm getting this following output:
[tt]
click 0
shift-click 65409
shift-click -127
shift-click -127
click 1
click 1
shift-click 65408
shift-click -128
shift-click -128
click 0
[/tt]
is this normal? do i need to test for (GetKeyState() < 0 or GetKeyState() > 1)?
thanks
-- frank~