Scripting Help Needed With Automation

Nokx

New member
Hi All, I am a complete newbie to scripting, so bare with me please.

So far, I have created a .bat to run kolmafia for me and a .txt, in the .txt:
login acc
call script.ash

but now what I want to do is make kolmafia automatically input a string, as the .ash calls up an input box.
I would like the .txt to have a few lines of code to input a string, confirm/say ok/push the ok button then enter another string etc, till the script has met all its requirements.

I hope that is enough information and it is not too difficult to achieve. Thank you to anyone who helps in advance.
 

Bale

Minion
Is the problem that you want to have the data for variables used by the script's main() input by the cli script which calls it?

You can do that like this:
Code:
call script.ash (parameter1, parameter2, parameter3)
 

Nokx

New member
Is the problem that you want to have the data for variables used by the script's main() input by the cli script which calls it?

You can do that like this:
Code:
call script.ash (parameter1, parameter2, parameter3)

Yes this is perfect! thank you very much :D
 
Top