🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #98

Maybe OT here but: how do i get the key that is pressed in my routine

#98
From: Marc Antheunis
Date: Mon, 26 Jan 2004 10:07
16 lines
1633 bytes
hi,
at this point i'm coding against the OnShortCut event handler
i do get all the 'keys' that windows is providing to the application
but a ']' character for example comes in as 3 keys, so i really can't do
much with it
now the OnKeyPress event does get the key but is not the first in row who
captures the key so i aint sure i'm getting all the keys pressed
i looked at articles explaining that i have to implement a keyboard hook and
that i need a dll for it but i do not want to go that far (for know)
so is there a way in the OnShortCut event to 'know' what keyboard character
is pressed without having to interpret 3 calls to this event?

if this isn't the right place please tell me where to post this

tia,
marc
Technical Details
Message-ID: <4014e597$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,c3e7a5c03c14a04e,start
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2004-01-26 02:09:31 PST
From: "Marc Antheunis" <xls.be@marc>
Newsgroups: borland.public.delphi.language.objectpascal
Subject: Maybe OT here but: how do i get the key that is pressed in my routine
Date: Mon, 26 Jan 2004 11:07:19 +0100
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 80.200.250.125
Message-ID: <4014e597$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075111319 80.200.250.125 (26 Jan 2004 02:01:59 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail