t2:macro_rec

macro_rec


macro_rec - Record a macro

Description


macro_rec("<filename>.gmk"); 

Record the Titan Two controller outputs to the macro file named <filename>, stored in the SD-Card.

If <filename> already exists, it will be overwritten without warning.

Parameters


  • <filename>: Filename of the macro to record. The <filename> must have 8 characters or less.

Examples


Example #1 macro_rec() example

init {
    // Start the macro recording ...
    macro_rec("outputs.gmk");
}
 
main {
    // .. and stop after 10 seconds.
    if(macro_time() >= 10000) {
        macro_stop();
    }
}

See Also

t2/macro_rec.txt · Last modified: 2018/06/27 04:48 by J2Kbr