Jump to content
Corsair Community

Have macro for KB, want to activate it by mouse click


wo2x
 Share

Recommended Posts

Hi all, i have a corsair k95 platinum.

 

I have made a macro that works perfectly when i bind it to any key on keyboard. The software is amazing.

 

However, i want to be able to activate it by pressing right click on my mouse. I have a razor mouse and i cant figure out how to do this.

 

One solution i thought would work 100% is using Autohotkey, and add a script Rbutton would send key "H" ( which is my macro button )

 

It still doesnt work, but when i press H it works fine.

 

Really really confusing, if anyone is able to help that would be amazing,

Link to comment
Share on other sites

you are probably using AHK like:

 

h::

;stuff

return

 

am i correct in that?

 

If so, it is possible the way Razrs mouse works, even if H is remapped out of a mouse keypress, it will not necessarily trigger ahk, based on a lot of vendor specific minutia.

 

with Corsair, if you had a Corsair mouse and set CUE/iCUE to register a keypress, in almost any version, in my experience it always is registered in autohotkey.

 

That said, can you share your autohotkey script or at least the part at the top of the hotkey? Also I dont have razer software but you could potentially link a button to an exe (if compiled), or a link to an .ahk and say "hey razr execute this each right mouse button press" and have a specific ahk script that just says:

 

h::

;stuff

return

 

Why not just bind the mousebutton in autohothey with application specificity? Does that work for your use case? It can be done with:

 

#IfWinActive ahk_exe game.exe

RButton::

;stuff here

MsgBox I got here

Return

#IfWinActive

 

 

 

//sorry reread post i see you said you tried that. You shoudl post your ahk and also tell us if your razr mouse is set to default right click behavior?

Edited by hastegag
reread op
Link to comment
Share on other sites

 Share

×
×
  • Create New...