🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Recieving Windows Messages (like WM_MOUSEMOVE) by another application

#5600
From: Daniel Mayo
Date: Wed, 03 Aug 2005 18:55
17 lines
1635 bytes
I want to make a program that can track motions of a mouse on another 
application, so I can create a macro builder; but I am having trouble 
catching the messages.

How can I receive simple windows messages, like (WM_MOUSEMOVE) that are 
sent to Program X from Program Y, when the two are not related?

I thought this might work, but as you gurus all know, this routine only 
captures messages delivered to this particular app.

      Application->OnMessage = MessageCatcher;

//MessageCatcher is the function where I would handle it the other apps 
messages, but of course, they aren't sent here..


How do I include all apps, or a specific target app also?
Technical Details
Message-ID: <42f11306@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d86dd8eecfa1e44,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 03 Aug 2005 13:55:15 -0500
From: Daniel Mayo <dmayo@reply.via.newsgroup.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Recieving Windows Messages (like WM_MOUSEMOVE) by another application
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.174.165.174
Message-ID: <42f11306@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123095302 216.174.165.174 (3 Aug 2005 11:55:02 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail