🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #478

Re: How can I change/remap keys from inside my keyboard hook? (I've been searching all day...)

#478
From: Thaddy de Koning
Date: Fri, 14 Jan 2005 09:18
7 lines
1960 bytes
You can not use messages, because you would fall back into the hook thus 
creating an endless loop.
You should map the whole keyboard and xlat them into YOUR keyboad lay 
out ( do it just once when the hook is installed) and look up from the hook.
The thins you need are the win32 api GetKeyboardstate and 
SetKeyboardstate. These use very easy to handle arrays so it isnt 
difficult at all
Technical Details
Message-ID: <Q7MFd.81623$Lv.63812@amsnews02.chello.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!newsfeed01.chello.at!amsnews04.chello.com!amsnews02.chello.com.POSTED!53ab2750!not-for-mail
References: <1105557699.667151.276930@z14g2000cwz.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10baee,797761edfabd18bb
X-Google-Thread: 111659,797761edfabd18bb
X-Google-Thread: 10261c,797761edfabd18bb
X-Google-Thread: 1091e5,797761edfabd18bb
X-Google-Thread: 113dfb,797761edfabd18bb
X-Google-Attributes: gid10baee,gid111659,gid10261c,gid1091e5,gid113dfb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!newsfeed01.chello.at!amsnews04.chello.com!amsnews02.chello.com.POSTED!53ab2750!not-for-mail
From: Thaddy de Koning <thaddy@replacethiswithmyfirstname.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.pascal.borland,comp.lang.pascal.misc,borland.public.delphi.winapi,comp.os.ms-windows.programmer.win32
Subject: Re: How can I change/remap keys from inside my keyboard hook?  (I've
 been searching all day...)
References: <1105557699.667151.276930@z14g2000cwz.googlegroups.com>
In-Reply-To: <1105557699.667151.276930@z14g2000cwz.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 7
Message-ID: <Q7MFd.81623$Lv.63812@amsnews02.chello.com>
Date: Fri, 14 Jan 2005 09:18:40 GMT
NNTP-Posting-Host: 84.119.181.192
X-Complaints-To: abuse@chello.nl
X-Trace: amsnews02.chello.com 1105694320 84.119.181.192 (Fri, 14 Jan 2005 10:18:40 MET)
NNTP-Posting-Date: Fri, 14 Jan 2005 10:18:40 MET
Organization: chello broadband