Solved

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

Posted on 2006-06-09
9
246 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

11 Experts available now in Live!

Get 1:1 Help Now