To do macro with keys
4 posts
• Page 1 of 1
To do macro with keys
While holding a key, I want it to do the macro when you press a different key. What should I write code for this?
-
abbasbj - First Sergeant
- Posts: 58
- Joined: Sat Feb 01, 2020 10:16 pm
Re: To do macro with keys
key_status() https://www.consoletuner.com/wiki/index ... key_status
- Code: Select all
if(key_status(KEY_A)) {
if(key_status(KEY_B)) {
// do stuff
}
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: To do macro with keys
not the keyboard. gamepad
I tried to simulate. is it correct?
- Code: Select all
main {
if(get_val(BUTTON_2)) {
if(event_active(BUTTON_4)) {
macro_run("Example.gmk");
}
}
I tried to simulate. is it correct?
-
abbasbj - First Sergeant
- Posts: 58
- Joined: Sat Feb 01, 2020 10:16 pm
Re: To do macro with keys
abbasbj wrote:not the keyboard. gamepad
I tried to simulate. is it correct?
Yes this is correct.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 66 guests