Article View: borland.public.cppbuilder.nativeapi
Article #14906Re: getting keyboard input
From: DRE
Date: Sat, 26 Jul 2003 10:21
Date: Sat, 26 Jul 2003 10:21
25 lines
1760 bytes
1760 bytes
Thanks Vladimir, I will check it out "Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message news:3f20d70a$1@newsgroups.borland.com... > > "DRE" <dre00x@yahoo.com> wrote: > >Good Day, > > > >I want to capture the keyboard input from the active window(the foreground > >window) > >and I'm not experinced with windows api but from searching I understood that > >I will need to use the "GetWindowText" , "SetForegroundWindow" and > >"SendMessage" functions to perform this task but I still don't know how to > >utilize them, and I seek any example that explains how to use these > >functions and what parameters do I need to pass to them. > > As a rule in such case you need to use systemwise keyboard hook. > In this conference some weeks ago Michel Leunen gave > perfect reference: http://tinyurl.com/g7ty > > Vladimir.
Technical Details
Message-ID:
<3f225525@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f1fa75d@newsgroups.borland.com> <3f20d70a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,edd18f7092575ea0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-26 03:21:24 PST From: "DRE" <dre00x@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f1fa75d@newsgroups.borland.com> <3f20d70a$1@newsgroups.borland.com> Subject: Re: getting keyboard input Date: Sat, 26 Jul 2003 13:21:49 +0300 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 62.68.241.50 Message-ID: <3f225525@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059214629 62.68.241.50 (26 Jul 2003 03:17:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail