patgenn123 Posted June 9, 2008 Share Posted June 9, 2008 Hello everyone! I am affectionately a newbie! i just made my first script thanks to being helped last light! Thanks for the help ! My question is: Is there a way of ordering the text copied from a screen using WinGetText? I was able to capture the text on the screen and copy it to the clipboard, but now I have this "blob" of info with no order. This information was captured from a database and has multiple text labels and fields. How can I order the info so text labels and fields are one after the other rather than being all over the place after AutoIt captures the text? -P Link to comment Share on other sites More sharing options...
someone Posted June 9, 2008 Share Posted June 9, 2008 I would suggest you look at StringSplit() in the help file. Probably what you will want to do is split the block of text on every @LF. While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 9, 2008 Share Posted June 9, 2008 AutoIt captures text based on the order the windows are returned by enumeration. At least, I can only assume that is how it works. You want to read controls manually instead of getting window text. Link to comment Share on other sites More sharing options...
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