🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14973

getting keyboard input

#14973
From: DRE
Date: Thu, 24 Jul 2003 09:35
11 lines
1499 bytes
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.

thanks in advance
Technical Details
Message-ID: <3f1fa75d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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: 10cc67,edd18f7092575ea0,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-24 02:40:15 PST
From: "DRE" <dre00x@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: getting keyboard input
Date: Thu, 24 Jul 2003 12:35:35 +0300
Lines: 13
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.135.27.192
Message-ID: <3f1fa75d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059039069 62.135.27.192 (24 Jul 2003 02:31:09 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail