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.
acConsumePhysicalInput(1)
acMouseMove(gsx,gsy)
acDelay(20)
if acGetMouseCursorType() == "HAND" then
acMouseMove(gsx, gsy)
acSendKeys("%t")
else
acSendKeys("^t")
end
acMouseMove(gex,gey)
acConsumePhysicalInput(0)