Sign in to follow this  
Followers 0
patgenn123

Order out of chaos

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0