Thread Subject: How to read scrolling data in a window?

Subject: How to read scrolling data in a window?

From: midoga

Date: 14 Nov, 2007 21:44:28

Message: 1 of 4

Dear Sirs, my problem is the following:
I have to read real time data of stock quotation in order to elaborate
a trading strategy.
My trading software presents data in a window. Data are updated nearly
every 5 seconds and scroll from top to bottom in the window.
Do you know if it is possible to read these data and to put them in a
vector?
Thank you for suggestions.

Subject: How to read scrolling data in a window?

From: Randy Poe

Date: 14 Nov, 2007 21:59:05

Message: 2 of 4

On Nov 14, 4:44 pm, midoga <mid...@tin.it> wrote:
> Dear Sirs, my problem is the following:
> I have to read real time data of stock quotation in order to elaborate
> a trading strategy.
> My trading software presents data in a window. Data are updated nearly
> every 5 seconds and scroll from top to bottom in the window.
> Do you know if it is possible to read these data and to put them in a
> vector?
> Thank you for suggestions.

Is the software you are trying to read written in Matlab?

Or are you asking how to read something from a window
of an executable program for which you do not have
source code?

If it is the second, this is not an easy problem. The only
way I could think to accomplish it would be to see if
there is something in the Windows API that lets you
do it, and then write MEX code to access the API.

             - Randy

Subject: How to read scrolling data in a window?

From: midoga

Date: 14 Nov, 2007 22:18:13

Message: 3 of 4

> Or are you asking how to read something from a window
> of an executable program for which you do not have
> source code?
>
> If it is the second, this is not an easy problem. The only
> way I could think to accomplish it would be to see if
> there is something in the Windows API that lets you
> do it, and then write MEX code to access the API.
>
> - Randy

I'm just asking to read something from a window of an executable
program for which I don't have source code.
Note that if I make this window active, I copy selection and I paste
it into notepad, I have just I want to obtain.
This means that data are presented in simple way.
I don't know if this can help.

Sorry, what is API?

Subject: How to read scrolling data in a window?

From: Randy Poe

Date: 14 Nov, 2007 23:13:25

Message: 4 of 4

On Nov 14, 5:18 pm, midoga <mid...@tin.it> wrote:
> > Or are you asking how to read something from a window
> > of an executable program for which you do not have
> > source code?
>
> > If it is the second, this is not an easy problem. The only
> > way I could think to accomplish it would be to see if
> > there is something in the Windows API that lets you
> > do it, and then write MEX code to access the API.
>
> > - Randy
>
> I'm just asking to read something from a window of an executable
> program for which I don't have source code.
> Note that if I make this window active, I copy selection and I paste
> it into notepad, I have just I want to obtain.
> This means that data are presented in simple way.
> I don't know if this can help.
>
> Sorry, what is API?

Application Program Interface. I was thinking that you
would have to make requests to the Windows operating
system to do the equivalent of "select window", "copy",
"paste", etc. An API is a library which a manufacturer
(in this case Microsoft) gives you to access their product
(in this case Windows).

As you can see, it's a fairly difficult problem and not
really a Matlab issue, except my suggestion to write
a MEX program to contain these calls. Are you familiar
with MEX programming? It is the mechanism by which
Matlab interfaces with C or C++ code.

           - Randy

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com