🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SetWindowsHookEx

#14160
From: Remy Lebeau (TeamB)
Date: Tue, 02 Sep 2003 16:46
24 lines
1810 bytes
"Boguslaw Fries" <B.Fries@luca-online.de> wrote in message
news:3f546f78$1@newsgroups.borland.com...

> I want to send keyboard input to TWO separate tasks ( one is active window
> another one is minimized application ).

Simply maintain HWND windows to both windows.  When you detect keystrokes on
one HWND, copy them to the other HWND as well.

> Now I can send obtain this stream only in ACTIVE ( focused ) application

Sounds like you did not set up you hook to be system-wide global.  Are you
implementing it in a DLL of its own?  You need to do that if you are not
already.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID: <3f54c94f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f544e99$1@newsgroups.borland.com> <3f5450f8$1@newsgroups.borland.com> <3f546f78$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,765ef9c6fca8b990
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-02 09:56:31 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f544e99$1@newsgroups.borland.com> <3f5450f8$1@newsgroups.borland.com> <3f546f78$1@newsgroups.borland.com>
Subject: Re: SetWindowsHookEx
Date: Tue, 2 Sep 2003 09:46:20 -0700
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f54c94f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062521167 207.175.226.26 (2 Sep 2003 09:46:07 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail