🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17145

Re: detecting keys

#17145
From: Rodolfo Frino::Stargate Software
Date: Mon, 07 Apr 2003 16:36
23 lines
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
>
>
Technical Details
Message-ID: <3e91a869$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e91a31d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,341262312c10c22d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-07 09:37:51 PST
From: "Rodolfo Frino::Stargate Software" <starcinema@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e91a31d@newsgroups.borland.com>
Subject: Re: detecting keys
Date: Tue, 8 Apr 2003 02:36:23 +1000
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 210.49.118.49
Message-ID: <3e91a869$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1049733225 210.49.118.49 (7 Apr 2003 09:33:45 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail