StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
 All Forums
 General Discussion
 General Discussion
 Open link in a new tab

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Surenpahlav Posted - 02/09/2019 : 15:16:20
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)
1   L A T E S T    R E P L I E S    (Newest First)
Surenpahlav Posted - 02/09/2019 : 17:45:22
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)

StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000