I'm trying to open a link in a new tab in Firefox. Mouse middle button can do this by itself, but I have that remapped to Ditto clipboard manager. So I used Autohotkey to assign alt+t to emulate mouse middle button, and this part works.
Now I'm trying to have this on S+ but no luck. Below is the code I use, but I don't know how to implement acSendKeys("%t") in it.
if acGetMouseCursorType() == "HAND" then