GetWindowText has two parts, the title of the window and the variable for the text that you save, how do you loop through the variable to check out every line gotten by GetWindowText.
GetActiveWindow>wintitle,winX,winY
GetWindowText>%wintitle%,listinfo
Message>%listinfo%
I want to loop through listinfo. I know this is easy and I'm looking for the code as we speak, and I've done it before! Just can't seem to find it.
Thanx everyone.
GetWindowText question, really easy
Moderators: Dorian (MJT support), JRL
Easiest way is to use Separate. The delimiter is CRLF (because each item is on a new line). So:
GetWindowText>WindowTitle,wText
Separate>wText,%CRLF%,texts
Then you have texts_count indicating how many lines there are and for each there will be texts_[1], texts_[2] .... texts_[texts_count]
GetWindowText>WindowTitle,wText
Separate>wText,%CRLF%,texts
Then you have texts_count indicating how many lines there are and for each there will be texts_[1], texts_[2] .... texts_[texts_count]
MJT Net Support
[email protected]
[email protected]