overnovice Posted January 9, 2007 Posted January 9, 2007 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!
someone Posted January 9, 2007 Posted January 9, 2007 (edited) 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 January 9, 2007 by someone While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd
overnovice Posted January 9, 2007 Author Posted January 9, 2007 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....
someone Posted January 10, 2007 Posted January 10, 2007 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...lgethandlebyposandhttp://www.autoitscript.com/forum/index.ph...lgethandlebyposHopefully 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
overnovice Posted January 10, 2007 Author Posted January 10, 2007 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...lgethandlebyposandhttp://www.autoitscript.com/forum/index.ph...lgethandlebyposHopefully 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now