This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Open link in a new tab
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Surenpahlav

20 Posts

Posted - 02/09/2019 :  15:16:20  Show Profile
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)

Surenpahlav

20 Posts

Posted - 02/09/2019 :  17:45:22  Show Profile
Nevermind I got it to work by installing the textlink extension. So I use this now:

acConsumePhysicalInput(1)
acMouseMove(gsx,gsy)
acDelay(20)
if acGetMouseCursorType() == "HAND" then
acSendControlDown()
acDelay(50)
acMouseClick(gsx, gsy, 2, 1, 1)
acDelay(50)
acSendControlUp()
acDelay(50)
acMouseClick(gex, gey, 2, 1, 1)
else
acSendShiftDown()
acSendKeys("{Enter}")
acSendShiftUp()
end
acMouseMove(gex,gey)
acConsumePhysicalInput(0)
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000