Page 1 of 1

Capturing and storing output over multiple lines

Posted: Sun Nov 13, 2016 4:28 am
by zakman
Working on a small script to take the output of a command (an inventory list w/quantities), parse it for certain values, and plug those values into a miniconsole window. Details here: http://pastebin.com/2XHi4uUp

I have come up with a couple of different ways I could go with this. I am thinking the best method to make future expansion easy would be to just make a table and put it all in there, but have never worked with tables before. Also, capturing the different items will be tricky, as they are not fixed in the list - they move around, appear and disappear depending on if I have any in there.

Any suggestions for the best way to get started on this?

Re: Capturing and storing output over multiple lines

Posted: Tue Feb 14, 2017 9:23 pm
by Vadi
Paste is no longer available - sorry for the delayed response - but I'd use a gated trigger to start your capture. Once inside your gated trigger, you can be pretty lenient with your capturing. A table would definitely be the right place for storing data as well. Let me know how you went and feel free to ask for help.