473,657 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Intercept messages belonging to a foreign app?

Let's say I want to watch a RichEdit control (e.g. a chat window)
outside of my own C# application and intercept its Windows messages.

Is there a way to do this?

Nov 17 '05 #1
4 1845
Hi,

i think that will be only possible by using
unmanaged code. There is a posting about
hooking global key events within your application
which should be smilar to that what you want
to do.

http://groups.google.de/group/micros...3edbe9e0451e0f

But why you have to do that? I think
a chat client should work with protocols
and ports to recieve it messages.

Cheers
Lars Behrmann

_______________ __
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/

Zo****@gmail.co m schrieb:
Let's say I want to watch a RichEdit control (e.g. a chat window)
outside of my own C# application and intercept its Windows messages.

Is there a way to do this?


Nov 17 '05 #2
Thanks Lars for responding. This is actually a chat window within a
game, and I'm trying to see if I can grab text from that control as it
gets posted there. To do this I'm wondering if I can create an event
handler which watches that control (which is outside my own app) and
respond to changes which would indicate that new text has appeared.

Nov 17 '05 #3
Salam

i think you have to work with Win32 Programming and Check for the System
Events thats are occuring. I worked on a Application (Windows Service) that
uses to monitor the activity of the browser like Browser Open, Closed, Link
Asked etc, the main approach i used to loop through the process in the
Windows Shell, and then add a event to that process, in this way i capture
the required events raised by/on the browser.
--
ALI RAZA SHAIKH
MCAD.net

www.programmersparadise.cjb.net
alirazashaikh.b logspot.com
<Zo****@gmail.c om> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.com...
Let's say I want to watch a RichEdit control (e.g. a chat window)
outside of my own C# application and intercept its Windows messages.

Is there a way to do this?

Nov 17 '05 #4
Find out which port the game uses; this is usually listed in a manual or something.

Then, write a program that taps into that port and gets the messages from it:
1. Connect to "network" on port number
2. Convert incoming bytes to string
3. Display string

*************** *************** *************** *************** **********
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2101
by: Todd Smith | last post by:
I've read about Browser Helper Objects and how they load in a dll with IE and can intercept messages and change things. I've got a neat idea for a change to the icq interface, but I don't want to write a whole new app. Ideally, (if it worked like a BHO), I could have a dll installed that would load with icq and interecept messages, so instead of the icq window popup, something else would happen. Also, people could keep their icq...
0
2590
by: Tetsuji Ueda | last post by:
Hello, I'm currently porting an application using some other DB to MySQL. The database in question has several tables with foreign key relations. The application is written such that, on table INSERTs, if a foreign key relation is violated, the error message is parsed for the particular relation that is violated. As a simple example, say we have the tables: create table mother (mother_id int primary key);
1
6112
by: Imran | last post by:
Hi, Please bear with me as I have only 1 weeks .NET experience. I am using VB.NET to write a stand-alone client application that connects to a Web service. I successfully send a request for a list of items (i.e. getItemList), and successfully receive the list. I then send a request for individual items from the list (i.e. getItem), and successfully receive the item.
3
5661
by: Eka Gautama | last post by:
Hi all, Is it possible to intercept net send message? I don't want windows show the message to screen directly, but i want process first, then display to the screen... Thanks
3
15275
by: Radovan Radic | last post by:
Hello all, I am new to .NET and a i am moving from Delphi (finally!) to C#. Now, i am trying to develop custom TextBox for numeric input. I have done it almost, now i need to prevent paste so someone couldnt paste letters into numeric text box. How this can be done in C#? In Delphi there was method to implement methods wiht message code WM_PASTE, and within that method i could control the contents of the pasted text. Thanks.
8
21598
by: MrNobody | last post by:
How do I change a window's behavior so when someone clicks the little 'X' in the upper right corner it actually hides the dialog, instead of disposing it?
4
8310
by: KlassifiedBBS | last post by:
I want to create a game bot for a video chat program with a closed API. I can see the windows messages when I hook up Spy++ to the window in question. I have done numerous Googles for some kind of example in C# code to no avail. Can someone point me to someplace with a little information how to do this?
2
6249
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can not update" messages since the upgrade from Windows 2000 and Access 200 to Windows XP and Access 2002 (XP) was done. Now, they are working and at anytime in anywhere of the application access unexpectedly quits with no error messages and the info that was being entered
1
1480
by: news.microsoft.com | last post by:
Hello How can I write a C# Windows Forms application so that it tells if it receives foreign windows messages. Foreign, say something like when another application takes its HWND and issues a WM_APP+123 for example. -- Elias
0
8411
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8323
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7351
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.