Author Topic: Importing a command sequence from a txt file  (Read 87 times)

Timo239

  • Newbie
  • *
  • Posts: 1
Importing a command sequence from a txt file
« on: January 13, 2018, 10:30:08 am »
Hi
Firstly let me congratulate you on an excellent product.
One thing I’m trying to do is import command macros from a txt file.
For example :-

I have the following which sets variables at startup

Write '[Purple] Setting Defaults' to log
Set Boolean [>P51D_Startup_Check_List] to False
Set Boolean [>P51D_Startup_Check_List_Check] to False
Set Boolean [>P51D_Startup_Check_List_Cancle] to False

I can import the commands into a txt file Via Copy all as txt.

I would like to add more variables via the my fav txt editor for example :-

Write '[Purple] Setting Defaults' to log
Set Boolean [>P51D_Startup_Check_List] to False
Set Boolean [>P51D_Startup_Check_List_Check] to False
Set Boolean [>P51D_Startup_Check_List_Cancle] to False
Set Boolean [>Added_Var_1] to False
Set Boolean [>Added_Var_2] to False

once Finished copy my added code & import it into the Edit a command window.

Is this possible ?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 1413
Re: Importing a command sequence from a txt file
« Reply #1 on: January 13, 2018, 04:59:39 pm »
I often think that it would be great to make VA work with hand-typed script, although the drive is to make everything work through a user interface (kind of clunky if you're a programmer, but not everybody's a programmer (yet)).  It would require quite an effort to interpret script into VA's vast set of actions and the values for those actions, so, something like that gets pushed off.  What folks have been doing for years, however, is just exporting their profiles, modifying the xml and then re-importing.