Viewing 1 post (of 1 total)
  • Keymaster
    Member since: June 19, 2020

     

    Let’s say you would like to bind one key to start and stop a recording, its not the best way to do it but it is faster. Recording through a bind skips naming the file, but if you can remember what the name was that it displayed your fine.

    This requires a new type of variable called a ‘variable array’ using the ‘vstr’ command.

    It sort of works like a toggle switch but it allows for an entire string to be used instead of a simple on/off switch. It uses an array which is important for this to work.

    Here’s the way it works. First we set the first number in the array with two strings separated by a colon ‘;’. The first array is set to turn on recording, and then points the array to the next number in the array using a vstr command. Our array will be named recj.

    set recJ01 “record; set recj vstr recj02”

    Next we set the next slot in the array to stop recording and to switch the array pointer back to the original number.

    set recJ02 “stoprecord; set recJ vstr recJ01”

    Now we set and declare the array.

    set recj “vstr recj01”

    Now we simply bind the array of commands to a key, I’m using ‘R’ but any key will work.

    bind R “vstr recj”

    The whole thing looks like this, don’t forget the quotation marks they are important.

    set recJ01 “record; set recj vstr recj02”
    set recJ02 “stoprecord; set recJ vstr recJ01”
    set recj “vstr recj01”
    bind R “vstr recj”

    This will be much easier if we put this into a config file but you could type it all in if you like.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.