Capturing and storing output over multiple lines

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

Capturing and storing output over multiple lines

Post by zakman » Sun Nov 13, 2016 4:28 am

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: 4642
Joined: Sat Mar 14, 2009 3:13 pm

Re: Capturing and storing output over multiple lines

Post by Vadi » Tue Feb 14, 2017 9:23 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest