www.ClassicTW.com
https://mail.black-squirrel.com/

CIM
https://mail.black-squirrel.com/viewtopic.php?f=15&t=21140
Page 1 of 1

Author:  Kaus [ Sun Nov 02, 2008 11:35 pm ]
Post subject:  CIM

Kinda hit a roadblock in my current script endevor. I'm making a Mega Rob script which does my daily portdowns and robs automatically cause i find it tedious. My intent is to run a cim find eligable ports from the report and warp buydown/steal repeat. My roadblock involves how to obtain the cim data. Should I using a While loop? A array?

I was going to use a while loop simlar to
-------------------------
Send " ^ R "
SetVar $i 1
SetVar $Cim 1
While ($Cim < SECTORS)
SetTextLineTrigger CURRENTLINE :Cim "-"
pause
:Cim
Getword $Cim 1
Getword $Fuel 3
Getword $Org 5
Getword $Eq 7
-------------------------------

You get the point, however my issues involve that - is repeated for every buy port and position of the F/O/E changes with each sector. Any suggestions?

Author:  Singularity [ Sun Nov 02, 2008 11:55 pm ]
Post subject:  Re: CIM

There is no reason to do that. Just run the CIM as a macro, as long as you have twxproxy set to record data it will automatically parse and pickup the values, then put them in the various sector arrays. All you have to do is work w/ the sector data.

Author:  Kaus [ Mon Nov 03, 2008 12:15 am ]
Post subject:  Re: CIM

Singularity wrote:
There is no reason to do that. Just run the CIM as a macro, as long as you have twxproxy set to record data it will automatically parse and pickup the values, then put them in the various sector arrays. All you have to do is work w/ the sector data.


Heh, didn't even think of that LOL.. Thanks :-)

So something along the lines of
---------
Setvar $i 1
While ($i <Sectors)
If PORT.BUYEQUIP[$i] = TRUE
GetSector $i.Port.Equip $Amount
end
----------
etc. Would work?

Author:  Singularity [ Mon Nov 03, 2008 2:13 am ]
Post subject:  Re: CIM

You don't have to use getSector, and don't forget to increment your $i value within the loop. PORT.EQUIP[sector] already has it for you.

Linky:
http://www.navhaz.com/files/script.html

Author:  Kaus [ Mon Nov 03, 2008 6:21 pm ]
Post subject:  Re: CIM

One last question on this topic. When runing the Cim do most scripters use a delay trigger to alert the script of the end of text? What I mean is Cim runs and has allot of similar text. I don't think I can use a waitfor because there is no discernable exit text that hasn't allready been displayed. The only thing I could think of was either a delay of a waitfor "-" and then another waitfor ":"

Author:  Singularity [ Mon Nov 03, 2008 6:25 pm ]
Post subject:  Re: CIM

Quote:
One last question on this topic. When runing the Cim do most scripters use a delay trigger to alert the script of the end of text? What I mean is Cim runs and has allot of similar text. I don't think I can use a waitfor because there is no discernable exit text that hasn't allready been displayed. The only thing I could think of was either a delay of a waitfor "-" and then another waitfor ":"


You can, but you don't need to w/ CIM.

Code:
send "^RQ"
waitFor ": ENDINTERROG"


Done and done.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/