Solved

How to "listen" for text changes in a particular part of a window.

Posted on 2006-06-09
9
247 Views
Last Modified: 2010-04-16
Is it possible with c# to recognize if a text changes in a particular part of a window. eg. a rectangle in the upper right corner of the window.

I´m thinking about something like telling the application to notice changes in a rectangle (eg. 10x2 cm).
If changes are notice the application should copy the text to a variable.

Can you help me?
0
Comment
Question by:dontso
  • 3
  • 3
9 Comments
 
LVL 4

Expert Comment

by:CaldNT
ID: 16870324
Is the text you want to monitor part of any control(textbox, label)?

How is the text changed? By what?
0
 

Author Comment

by:dontso
ID: 16870410
The text is in a flash application, so I guess (I dont know) I cant access any controls.
The text is changing by itself when news is recieved from a server.
I would like to get a notice on my screen when the text is changing. (eg. a messagebox showing the text that changed), but that I can do myself.
I just have no idea how to 1. let my application know when the text changes. 2. copy the text.
By the way: the text is not like an animation. It can be highlighted with the mouse and copy/pasted (maybe that makes a difference?)
0
 
LVL 4

Expert Comment

by:CaldNT
ID: 16870462
Can you modify the Flash application?

If so you should probably put code in it to notify the checking application.
Ask in the Flash forum:
http://www.experts-exchange.com/Web/WebDevSoftware/Flash/
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:dontso
ID: 16870485
Unfortunately I cannot modify the flash application.
I guess the only choice is to make c# "listen" to change in the way the screen looks. Is that possible in any way?
0
 
LVL 4

Accepted Solution

by:
CaldNT earned 250 total points
ID: 16870780
I have never done anything similar to this.

I found this link which let's you capture part of the screen:
http://www.codeproject.com/managedcpp/ijwscrcap.asp

You would need to let the part of the screen you want to "listen" to be visible and find a way to get the window position of the other application.

Hope that points you in the right direction.

Sorry I couldn't be of any more help.

Good luck!
0
 

Author Comment

by:dontso
ID: 16871206
Thanks for your help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now