Author Topic: command actions and syntax  (Read 1371 times)

mc_dan13

  • Guest
command actions and syntax
« on: December 28, 2019, 02:37:17 PM »
I can not enter command actions directly into its field. Can they be imported from notepad? If so where is the programming syntax documentation to translate "press an hold button5 + pov1 and release" to proper VA syntax?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: command actions and syntax
« Reply #1 on: December 28, 2019, 11:50:34 PM »
VoiceAttack actions are added using the GUI, except when importing from a .vap (which is not intended to be written or edited manually, but rather used to export existing commands from VoiceAttack by using a file to store the information).

The action you're describing does not exist, as pressing joystick buttons requires a plugin (and plugins are controlled using other methods, like their "Plugin Context" field).

However, if you had a similar action for a keypress, E.G.
Code: [Select]
Press A key and hold for 0,06 seconds and release
You add or edit a command, click the "Key Press" button next to the action list, press the "A" key on your keyboard to set that as the key to be pressed, select the "Press And Release Key(s)" option (if it isn't already), set the "Hold down for seconds." option to 0.060, then click "OK" to add the action to the command.

Most, though not all, actions can be replicated based on what is displayed in the action list in this way.