vanz Posted March 27, 2007 Share Posted March 27, 2007 Hi all.I've been exploring AutoIT for the last couple of days and am having a ball! But I've hit a hard spot for me and was hoping for some guidance.I learned how to use StdoutRead to grab output from an external application but can't figure out how to turn that output into selections in a listbox.In particular, what I have is a command line utility that outputs somthing like this:Total number of Items: 4Item1Item2Item3Item4What I want to do is to take that output and populate a listbox as individual selections but omit the first line that says "Total number of Items: <n>". I'm stuck on both the removing of the first line and making each item a selection.I'm sure it's a trivial thing to do, but I'm stuck. Any advice would be much appreciated. Link to comment Share on other sites More sharing options...
xcal Posted March 27, 2007 Share Posted March 27, 2007 (edited) $somenewvar = StringSplit(StringStripCR($thevarfromyourstdoutread), @LF) Add to your listbox: $somenewvar[2], $somenewvar[3], $somenewvar[4], and $somenewvar[5]. Edited March 27, 2007 by xcal How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
vanz Posted March 27, 2007 Author Share Posted March 27, 2007 You are a rock star! Thank you VERY much! 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