AutoHotkey Community

It is currently May 26th, 2012, 7:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to screen scrape
PostPosted: May 20th, 2008, 7:00 pm 
Offline

Joined: May 28th, 2007, 7:31 am
Posts: 27
Hi everyone,

I'm working on a project where I have to do the following.,..

1. Auto Copy what is in a window (regular text)
2. Paste the content to a file I created
3. As soon as the information goes away, new information arrives so the process of copy and past will re-peat itself.

What I need is for someone to direct me in the right direction.

Thanks in advance

Al


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 20th, 2008, 8:32 pm 
SetTimer to create a timer to check for changes regularly, ControlGetText (if you are lucky) to get the text, and FileAppend to append the result to a file if it is different from the previous result.

HTH


Report this post
Top
  
Reply with quote  
 Post subject: ControlGetText
PostPosted: May 20th, 2008, 9:35 pm 
Offline

Joined: May 28th, 2007, 7:31 am
Posts: 27
Hi, thanks for the info...

I've been doing lots of research about ControlGetText and see that many are having problems getting it to work... you seem to allude to that as well...

What I can't find is a basic example of it in the works. In my case I'll be using window spy (from what I read) along with ControlGetText. Is there an example you could direct me to that would help me understand how it works? The documentation gives alot of jargon that I don't quit understand. With other commands I was able to understand how they work because they they attach examples... ControlGetText does not have an example....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 20th, 2008, 9:41 pm 
Well, it depends heavily on the kind of control you are trying to access. If the Window Spy shows the text you want, you should be able to get it with ControlGetText. If it doesn't, post the class of the control you can find with Window Spy.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: dmg, Google Feedfetcher, kkkddd1 and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group