Capturing and storing output over multiple lines

Post Reply
zakman
Posts: 11
Joined: Sun Jul 08, 2012 4:11 am

Capturing and storing output over multiple lines

Post 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?

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Capturing and storing output over multiple lines

Post 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.

Post Reply