🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Capture Keyboard - Key Dump

#31
From: Martin Harvey (Demon account)
Date: Sat, 06 Nov 2004 03:00
20 lines
2220 bytes
On Fri, 05 Nov 2004 13:55:39 -0800, Jamie
<jamie_5_not_valid_after_5_Please@charter.net> wrote:

>have a look at SetWindowsHookEx. in the WIn32 API help.
>you will need to make a DLL that does the actual hooking
>so that all Apps will have it mapped in..
>  then you can use the FindWindow in the DLL each time
>the callback is referenced to locate your app window, this
>will return a handle that you can use to post a user message to.
>  P.S.
>    make sure you use some exotic name for your form class to insure
>there is no mix up in using the findWIndow Api call.

There's a better way, which is to use a global named mutex and global
named memory mapped file.

And by the way - setting this kind of global system hook will be
caught by every virus scanner under the sun... I know.

MH.
Technical Details
Message-ID: <dhfoo05f6ega17t0nnm0hjblqf9a9tovnm@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!194.168.222.134.MISMATCH!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!newspeer1-win.ntli.net!newsfe2-gui.ntli.net.POSTED!53ab2750!not-for-mail
References: <79d8d5b3.0411042031.539bf464@posting.google.com> <10onhj0nqvgvpfd@corp.supernews.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 109d30,e402b0fc39255682
X-Google-Thread: 1091e5,e402b0fc39255682
X-Google-Thread: fd817,e402b0fc39255682
X-Google-Thread: 140b35,e402b0fc39255682
X-Google-Attributes: gid109d30,gid1091e5,gidfd817,gid140b35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!194.168.222.134.MISMATCH!news-out.ntli.net!newsrout1-gui.ntli.net!ntli.net!newspeer1-win.ntli.net!newsfe2-gui.ntli.net.POSTED!53ab2750!not-for-mail
From: "Martin Harvey (Demon account)" <martin@nospam_pergolesi.demon.co.uk>
Newsgroups: borland.public.delphi.language.objectpascal,borland.public.delphi.winapi,alt.comp.lang.borland-delphi,borland.public.delphi.language.delphi.win32
Subject: Re: Capture Keyboard - Key Dump
Message-ID: <dhfoo05f6ega17t0nnm0hjblqf9a9tovnm@4ax.com>
References: <79d8d5b3.0411042031.539bf464@posting.google.com> <10onhj0nqvgvpfd@corp.supernews.com>
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 20
Date: Sat, 06 Nov 2004 03:00:04 GMT
NNTP-Posting-Host: 81.96.24.141
X-Complaints-To: http://www.ntlworld.com/netreport
X-Trace: newsfe2-gui.ntli.net 1099710004 81.96.24.141 (Sat, 06 Nov 2004 03:00:04 GMT)
NNTP-Posting-Date: Sat, 06 Nov 2004 03:00:04 GMT
Organization: ntl Cablemodem News Service