Site Tools
t2:gpc_scripting:macros
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
t2:gpc_scripting:macros [2019/10/01 12:32] scachi [Convert to Combo] |
t2:gpc_scripting:macros [2020/09/15 00:37] (current) scachi [Playback] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== GPC Macros ====== | ====== GPC Macros ====== | ||
- | This section is about the **basic macro usage only** (([[t2:gtuner_iv:macro_editor_interface|Here is a more detailed tutorial]] about the Macro Editor Interface, //created by [[https://www.consoletuner.com/forum/memberlist.php?mode=viewprofile&u=766|prototype]]//)) to record your inputs as macros and use them in scripts. The maximum length of a single macro file is 24hours. ((More precisely up to 24 days, 20 hours, 31 minutes, 23 seconds and 650 milliseconds)) | + | This section is about the **basic macro usage only** (([[t2:gtuner_iv:macro_editor_interface|Here is a more detailed tutorial]] about the Macro Editor Interface, //created by [[https://www.consoletuner.com/forum/memberlist.php?mode=viewprofile&u=766|prototype]]//)) to record your inputs as macros and use them in scripts. The maximum length of a single macro file is 24 days. ((More precisely up to 24 days, 20 hours, 31 minutes, 23 seconds and 650 milliseconds)) |
''While using a macro file directly in a script requires a sd-card you can still use this without one to record your input and convert it to a combo for playback.'' | ''While using a macro file directly in a script requires a sd-card you can still use this without one to record your input and convert it to a combo for playback.'' | ||
Line 55: | Line 55: | ||
// your filename must have 8 characters or less | // your filename must have 8 characters or less | ||
if (bplay) macro_run("Example1.gmk"); | if (bplay) macro_run("Example1.gmk"); | ||
+ | else macro_stop(); | ||
} | } | ||
</code> | </code> | ||
===== Convert to Combo ===== | ===== Convert to Combo ===== | ||
To get gpc combo code it needs some additional steps. But it is not that complicated or different. | To get gpc combo code it needs some additional steps. But it is not that complicated or different. | ||
- | Keep in mind that you can't convert a long macro completely to a combo because of the scripts size limitation. | + | \\ Keep in mind that you can't convert a long macro completely to a combo because of the scripts size limitation. |
t2/gpc_scripting/macros.1569947553.txt.gz · Last modified: 2019/10/01 12:32 by scachi