Page 1 of 1

change keystroke as I press the mouse button?

Posted: Sun Jul 21, 2019 4:30 pm
by ddoggg
Wondering if I can make a macro like this with xmouse button.
When I press the button, It Press "A" , if I press the same button again , it will be "B"
And it will reset every 2.2 seconds.

Thanks

Re: change keystroke as I press the mouse button?

Posted: Sun Jul 21, 2019 4:35 pm
by Kukurykus

Re: change keystroke as I press the mouse button?

Posted: Tue Jul 23, 2019 8:10 am
by phil
You may be able to do this with XMBC (although Autohotkey will be more powerful and probably reliable).
But i XMBC use simulated keystrokes, for the button on layer 1, use simulated keystrokes and type A{layer2}
For the same button on layer 2, use simulated keys and type B
On layer 2, set the option to "Switch to" layer 1 after 2 seconds (note: you cant specify in milliseconds here I'm afraid, so 2.2 seconds is out.)
You may be also able to type B{WAITMS2200}{layer1} on layer 2's simkeys. It also depends on if you want the key held down or simply pressed and released (play around with the send method in the simkeys dialog).

Re: change keystroke as I press the mouse button?

Posted: Tue Jul 23, 2019 11:12 am
by Kukurykus
You are right, it's possible to do with XMBC to some degree. I read too fast and seen 'button' word as a key in my mind so I thought it's another post someone wants XMBC to react for keyboard as well.