Macro to alternate button press. | Razer Insider

Macro to alternate button press.

  • 9 February 2019
  • 3 replies
  • 165 views

Hi all,

do you guys now if there is a possibility to create a macro for the Razer Trinity which would do something like this:

(Explanation:
If you press a button once it returns f.e. keyboard press "0".
If you press the button the second time it should return f.e. keyboard press "1".
3. time again "0".. then "1".. "0"..."1" etc.)
----------------------------------------------------------------------------
#define bool int
#define TRUE 1
#define FALSE 0

int main()
{

bool button_press = FALSE;
int count = 0;

if (button_press == TRUE && count == 0)
{
count = 1;

printf("Button 1");
return count;
}

if (button_press == TRUE && count == 1)
{
count = 0;

printf("Button 0");
return count;
}
}
--------------------------------------------------------------------------------

This topic has been closed for comments

3 Replies

Userlevel 7
Sounds like a job for AutoHotkey
I would like something like this too, but I have a Nostromo.
Userlevel 6
You can already do this using "sequence" option in the macro recorder for Synapse 3. Cheers!