Article View: comp.lang.pascal.delphi.misc
Article #479Re: How can I change/remap keys from inside my keyboard hook? (I've been searching all day...)
From: Thaddy de Koning
Date: Fri, 14 Jan 2005 09:21
Date: Fri, 14 Jan 2005 09:21
10 lines
2134 bytes
2134 bytes
Thaddy de Koning wrote: > 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 And MapVirtualKey do do the mapping! sorry missed that part before posting
Technical Details
Message-ID:
<laMFd.81624$Lv.80426@amsnews02.chello.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!amsnews01.chello.com!amsnews04.chello.com!amsnews02.chello.com.POSTED!53ab2750!not-for-mailReferences:
<1105557699.667151.276930@z14g2000cwz.googlegroups.com> <Q7MFd.81623$Lv.63812@amsnews02.chello.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!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!amsnews01.chello.com!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> <Q7MFd.81623$Lv.63812@amsnews02.chello.com> In-Reply-To: <Q7MFd.81623$Lv.63812@amsnews02.chello.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 10 Message-ID: <laMFd.81624$Lv.80426@amsnews02.chello.com> Date: Fri, 14 Jan 2005 09:21:21 GMT NNTP-Posting-Host: 84.119.181.192 X-Complaints-To: abuse@chello.nl X-Trace: amsnews02.chello.com 1105694481 84.119.181.192 (Fri, 14 Jan 2005 10:21:21 MET) NNTP-Posting-Date: Fri, 14 Jan 2005 10:21:21 MET Organization: chello broadband