GPC Developer Guides
...
Functions
Internal Functions
Combo Functions
here is the list of the combo functions and commands combo functions and commands function description combo run runs a combo combo running checks if a combo is running combo stop stops a running combo combo restart restarts a running combo combo suspend suspends (pauses) a combo combo suspended checks if a combo is in the suspended state combo current step gets the current step combo step time left gets the time left of the currently executed step combo stop all stops all combos combo suspend all suspends (pauses) all combos combo resume resumes the suspended combo combo resume all resumes all suspended combos combo run combo run does precisely what the name suggests and runs a combo however, unlike the combo restart command, it has no effect if the combo is currently running it will only start a combo if it is not already running gpc combo run(mycombo); š“ syntax combo run( \<combo name> ); āŖ parameters \<combo name> the name assigned to a combo šµ returns nothing combo running combo running is a function that can be used in your code to check is a combo is running is not if the combo named in its parameter is running, then it will return true if not, it will return false gpc combo running(mycombo); š“ syntax combo running( \<combo name>); āŖ parameters \<combo name> the name assigned to a combo šµ returns true if the combo is currently running and false if it is not combo stop combo stop does precisely what the name suggests and will stop a combo if it is running as with combo run , it has no effect if the combo is currently not running gpc combo stop(mycombo); š“ syntax combo stop( \<combo name> ); āāŖ parameters \<combo name> the name assigned to a combo šµ returns nothing combo restart combo restart will restart a running combo if the combo started within its parameters is currently running, it will be restarted from the beginning if the combo is not currently running, it will be run gpc combo restart(mycombo); š“ syntax combo restart( \<combo name> ); āŖ parameters \<combo name> the name assigned to a combo šµ returns nothing combo suspend combo suspend command suspends (pauses) a combo from running gpc combo suspend(mycombo); š“ syntax combo suspend( \<combo name> ); āŖ parameters \<combo name> the name assigned to a combo šµ returns nothing combo suspended combo suspended check to see if a combo is suspended gpc combo suspended(mycombo); š“ syntax combo suspended( \<combo name> ); āāŖ parameters \<combo name> checks the name assigned to a combo if suspended šµ returns nothing combo current step combo current step keywords returning the current step gpc combo current step(mycombo) š“ syntax combo current step ( \<combo name> ); āāŖ parameters \<combo name> checks the name assigned keywords returning the current step šµ returns nothing combo step time left combo step time left checks the time left of the currently executed step gpc combo step time left(mycombos) š“ syntax combo step time left( \<combo name> ); āāŖ parameters \<combo name> checks the time left of the currently executed step šµ returns nothing combo stop all combo stop all stops all combos from running gpc combo stop all(mycombos); š“ syntax combo stop all ( \<combo name> ); āŖ parameters \<combo name> stops all combos from running šµ returns nothing combo suspend all combo suspend all suspends all combos that is running gpc combo suspend all(mycombos); š“ syntax combo suspend all ( \<combo name> ); āŖ parameters \<combo name> suspends all combos that is running šµ returns nothing combo resume combo resume will resume a combo if it is suspended or a running combo gpc combo resume(mycombo); š“ syntax combo resume ( \<combo name> ); āŖ parameters \<combo name> resume a combo if it is suspended or a running combo šµ returns nothing combo resume all combo resume all will resume all combos if it is suspended or running combos gpc combo resume all(mycombo); š“ syntax combo resume all ( \<combo name> ); āŖ parameters \<combo name> resume all combos if it is suspended or a running combos šµ returns nothing combo specific commands wait wait command instructs the virtual machine within the cronus on how long the last set of commands should be executed for the length of time they instruct the vm to execute the commands is represented in milliseconds and can rand from 1ms to 32767ms (that's 1 millisecond to just over 32 seconds) the commands executed during the wait time are those placed between the current wait and the previous wait time, the current wait time and the previous call command, or the start of the combo, whichever comes first as shown in the example below gpc combo mycombo { set val(19, 100);//ĀÆĀÆ| set val(18, 100);// | these two buttons will be held wait(1000); //ā | for 1000 milliseconds (1 second) set val(3, 100);//ĀÆĀÆ| set val(7, 100);// | these two buttons will be held wait(1500); //ā | for 1500 milliseconds (1 5 seconds) set val(9, 100);//ĀÆĀÆ| this axis will be held wait(2000); //ā | for 2000 milliseconds (2 seconds) } š info the wait command can only be used within a combo and must be at the first level of the combo block, it cannot be nested gpc wait(300); // wait 300ms š“ syntax wait( \<time> ); āŖ parameters \<time> the length of time the last commands should be executed for represented in milliseconds ranging from 10 to 4000 šµ returns nothing call call command can only be used in combos and pauses the current combo to execute the combo called once the combo has finished, the previous combo is resumed gpc combo 1st combo { set val(xb1 b, 100); wait(100); wait(200); call( 2nd combo); // 1st combo is paused until 2nd combo is finished set val(xb1 y, 100); wait(100); wait(200); } combo 2nd combo { set val(xb1 rb, 100); wait(100); wait(200); } //once this combo has ended, the combo is was called from can resume š“ syntax call( \<combo name ); āŖ parameters \<combo name> the name assigned to a combo šµ returns nothing