Jump to content

Copy Text from a Window


Recommended Posts

How can I copy a text from a specific window, which the Auto-IT window info cannot locate? Its an application windows that changes its text from Idle, processing etc. I want to capture the text from that window and compare it with a set of text messages to make the appropriate processing.

I have heard of screen scraping but from here but I don't know how to use it or how it is done.

Please help!

Link to comment
Share on other sites

Sorry no one has given you any guidance at this point... can you tell me more about the program/window? What have you tried, and do you have any code that would help us to understand what your going for? Where is the text, in the title...etc?

Check into WinGetText, ControlGetText, and WinGetHandle/ControlGetHandle to retun the handles to work with...

And welcome to the forum!

EDIT because guidance just isn't spelt with two 'e's....

Edited by someone
While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Link to comment
Share on other sites

Its a Process Manager window from Solomon. I tried getting window info through auto-it and even using the trial version of automate, but it seems both programs can't get the control or label that contains the messages. My only solution might be doing a screenshot of that window and do an ocr. I'm looking at the forums and saw screen scraping but since I'm a novice, its too hard for me to understand.

Sorry no one has given you any guidance at this point... can you tell me more about the program/window? What have you tried, and do you have any code that would help us to understand what your going for? Where is the text, in the title...etc?

Check into WinGetText, ControlGetText, and WinGetHandle/ControlGetHandle to retun the handles to work with...

And welcome to the forum!

EDIT because guidance just isn't spelt with two 'e's....

Link to comment
Share on other sites

I'm not familiar with the software and if you keep having issues I might try to download it and see what I can come up with... but in the mean time, check out these two posts by LxP in example scripts. They deal with finding controls for things, and while they are a little hard to understand this could help you get your answer.

http://www.autoitscript.com/forum/index.ph...lgethandlebypos

and

http://www.autoitscript.com/forum/index.ph...lgethandlebypos

Hopefully that helps you out a bit. If you still can't get it see what else you can learn about the program and let us know.

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Link to comment
Share on other sites

Thanks! I'll check out your recommendations.

I'm not familiar with the software and if you keep having issues I might try to download it and see what I can come up with... but in the mean time, check out these two posts by LxP in example scripts. They deal with finding controls for things, and while they are a little hard to understand this could help you get your answer.

http://www.autoitscript.com/forum/index.ph...lgethandlebypos

and

http://www.autoitscript.com/forum/index.ph...lgethandlebypos

Hopefully that helps you out a bit. If you still can't get it see what else you can learn about the program and let us know.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...