How can i make this macro run in a loop
3 posts
• Page 1 of 1
How can i make this macro run in a loop
How can i make this macro run in a loop until i decide to stop it?
- Code: Select all
main {
if (check_active(BUTTON_12,500)) macro_run("macrp9A.gmk");
if (check_active(BUTTON_13,500)) macro_stop();
}
-
teckx - Sergeant Major of the Army
- Posts: 194
- Joined: Tue Mar 27, 2018 1:53 pm
Re: How can i make this macro run in a loop
- Code: Select all
bool loop;
main {
if(event_active(BUTTON_12)) loop = !loop;
if(loop) macro_run("macrp9A.gmk");
else macro_stop();
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: How can i make this macro run in a loop
Thank you !
-
teckx - Sergeant Major of the Army
- Posts: 194
- Joined: Tue Mar 27, 2018 1:53 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 79 guests