Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Luiz Rafael Culik Guimaraes
Mon, 07 Apr 2003 16:08
detecting keys
Author: Luiz Rafael Culik Guimaraes
Date: Mon, 07 Apr 2003 16:08
Date: Mon, 07 Apr 2003 16:08
6 lines
947 bytes
947 bytes
Dear Friends how to Detect if SHIFT,ALT,Scroll Lock,Ctrl keys has being pressed Regards Luiz
Re: detecting keys
Author: Rodolfo Frino::Stargate Software
Date: Mon, 07 Apr 2003 16:36
Date: Mon, 07 Apr 2003 16:36
23 lines
1487 bytes
1487 bytes
Did you try this (untested) code?
if( (GetKeyState(VK_SHIFT) & 0x8000) &&
(GetKeyState(VK_MENU) & 0x8000) &&
(GetKeyState(VK_CAPITAL) & 0x8000) &&
(GetKeyState(VK_CONTROL) & 0x8000) &&
(GetKeyState(VK_SCROLL) & 0x8000)
)
ShowMessage("SHIFT,ALT,Scroll Lock,Ctrl Pressed");
Regards,
Rodolfo
"Luiz Rafael Culik Guimaraes" <culikr@uol.com.br> wrote in message
news:3e91a31d@newsgroups.borland.com...
> Dear Friends
>
> how to Detect if SHIFT,ALT,Scroll Lock,Ctrl keys has being pressed
>
> Regards
> Luiz
>
>
Re: detecting keys
Author: Luiz Rafael Culik Guimaraes
Date: Mon, 07 Apr 2003 22:23
Date: Mon, 07 Apr 2003 22:23
8 lines
986 bytes
986 bytes
Rodolfo I�ll test Thanks in advance Regards Luiz
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads