RunScript 'Combine' failed-why?

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
Luc`Dragon
GamingTools Subscriber
Posts: 1
Joined: Thu May 19, 2005 11:22 pm

RunScript 'Combine' failed-why?

Post by Luc`Dragon » Sat May 21, 2005 2:12 am

I am new to this program, but am experienced in MQ2 and MQ(moreso). I made this little script(see below) to click the combine button for me cause I am lazy like that.
I use the command "run combine" and got the error "RunScript 'Combine' Failed". I also tried "runscript combine", "run combine.iss", and all variation of those.
I have the file saved to my scripts folder as both a text file and a any file with an .iss extention.
I have also downloaded and extracted ISXEQ2-20050519b to the extentions folder (do I need to add a command line to run it?).

Code: Select all

function main()
 {
 declare FuelCount int 1
 declare TotalFuel int 1
 declare Fuel string 9

;************** Calculate Fuel **************
 VarSet TotalFuel ${FindItemCount[${Fuel}]}

;*************** Combine Loop ***************
  do
   {
    call Combine
    VarCalc FuelCount ${FuelCount}+1
   }
  while "$&#123;FuelCount&#125;<=$&#123;TotalFuel&#125;"
 &#125;

;---------------------------------------------------------------------------
;-*-*-*-*-*-*-*-*-*-*-*-*-*-* Functions For Combine *-*-*-*-*-*-*-*-*-*-*-*-
;-*-*-*-*-*-*-*-*-*-*-*- &#123;Not including selecting recipe&#125; *-*-*-*-*-*-*-*-*-
;---------------------------------------------------------------------------

function Combine&#40;&#41;
 &#123;
  delay 3
   call ClickBegin
   call ClickRepeat
  delay 15
   call Click Stop
 return
 &#125;

function ClickBegin&#40;&#41;
 &#123;
  wait 3
  mouseto 200,790
  wait 1
  mouseclick -hold left
  wait 1
  mouseclick -release left
  wait 3
 return
 &#125;

function ClickRepeat&#40;&#41;
 &#125;
  wait 3
  mouseto 150,790
  wait 1
  mouseclick -hold left
  wait 1
  mouseclick -release left
  wait 3
 return
 &#123;

function ClickStop&#40;&#41;
 &#123;
  wait 3
  mouseto 375,790
  wait 1
  mouseclick -hold left
  wait 1
  mouseclick -release left
  wait 3
 return
 &#125;

function ClickCloseTSStation&#40;&#41;
 &#123;
  wait 3
  mouseto 428,790
  wait 1
  mouseclick -hold left
  wait 1
  mouseclick -release left
  wait 3
 return
 &#125;
I dunno, it should be simple I know, but any help would be appreciated.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sat May 21, 2005 3:46 am

Try entering the command "Scripts -available". This will list the files available in your scripts folder. Make sure it doesnt show up as "Combine.iss.txt" and such -- as long as it's simply "Combine.iss", it should at least run.

I'll give it harder look after I get some sleep, but there's nothing that sticks out in your paste as long as it's in the right place, and named correctly.

Post Reply