| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Fighter/Explore https://mail.black-squirrel.com/viewtopic.php?f=15&t=13073 |
Page 1 of 1 |
| Author: | Lucky Dog [ Sat Dec 25, 2004 2:30 am ] |
| Post subject: | |
Does anyone know of a script that will parse the data from the "show fighter" screen and generate a text file or auto-explore (preferrable) I could probably write a pascal prog that would parse it, not too terrible I don't guess. Or if u know of a explore script that will explore from a text file. Thanks, --LD-- |
|
| Author: | ElderProphet [ Sat Dec 25, 2004 3:35 am ] |
| Post subject: | |
Simple enough to create a text file from the fig display if you are using TWX Proxy. The following would create a figlist.txt file in your TWX directory: Code: delete figlist.txt send "g" waitOn "Deployed Fighter Scan" setTextLineTrigger personal :getDeployed "Personal " setTextLineTrigger corp :getDeployed " Corp" waitOn "Command [TL" halt :getDeployed killTrigger personal killTrigger corp getWord CURRENTLINE $figSector 1 write figlist.txt $figSector setTextLineTrigger personal :getDeployed "Personal " setTextLineTrigger corp :getDeployed " Corp" pause Not sure what you want to explore based on your fig list though. Care to explain a bit more? +EP+ |
|
| Author: | PHX [ Sat Dec 25, 2004 7:44 am ] |
| Post subject: | |
Or you could use my sector list generator...that is one of the many sources that it will get a list of sectors from...(if you use twx) http://phx.servosdigitaldomain.com/ |
|
| Author: | Lucky Dog [ Sat Dec 25, 2004 3:51 pm ] |
| Post subject: | |
This is a script that I attempted to write do what what I wanted, it won't work b/c I don't quite have the command usage or the environment correct. I am attempting to check a deploy fig scan and line buy line (while incrementing a variable which starts at 11) compare the figs shown. For instance: ------------------ 11 Corp . ... 13 Corp . . 14 Corp. ... 16 Corp .... if sectorshown <> sectorcount write sector to file.. The file would contain: (Sectorfile.txt) -------------- 12 15 __________________ :start logging off setvar $writenum 0 setvar $sectnum 11 send "g" setTextTrigger 1 :finish "Command [TL=" waitfor "=====" while ($sectnum <= 20000) getword currentline $figsect 1 gosub :checktext gosub :writetext add $sectnum 1 end halt :checktext if ($sectnum = $figsect) setvar $writenum 0 else setvar $writenum 1 end return :writetext if ($writenum = 1) echo $sectnum write figsect.txt $sectnum setvar $writenum 0 end return |
|
| Author: | Alexio [ Sat Dec 25, 2004 11:45 pm ] |
| Post subject: | |
Put your "g" list into a array, then write the sectors that didn't get flagged. setarray $fig sectors send "g" waitfor "===================================" settextlinetrigger grab :grab pause :grab getword currentline $secnum 1 getword currentline $finish 2 if ($finish = "Total") goto :finish else setVar $fig[$secnum] 1 end settextlinetrigger grab :grab pause :finish setVar $num 10 while ($num < sectors) add $num 1 if ($fig[$num] = 0) write $file $num end end something like this will give you a list of sectors you don't have fighters in... |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|