Solved

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

Posted on 2006-06-09
9
248 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 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