modify long holding trigger to triple click Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
happyorange

modify long holding trigger to triple click  Topic is solved

29 Jun 2017, 06:49

Many thanks to Rohwedder and GEV. I've got this script to implement paste-and-go function in address bar on browser, just by holding right mouse button. I come to realize that holding right mouse button trigger has conflicts with existing mouse gesture plug-in on browser.

Any kind man who can modify the following script from holding right mouse button to triple click right mouse button will be much appreciated.

Here is the script.

#NoTrayIcon
; Double Right Click to paste:
~RButton::
If (A_PriorHotKey = "~RButton Up" and A_TimeSincePriorHotkey < 500)
{
CloseContextMenu := true
KeyWait, RButton, L
Sleep, 200
Send ^v ; or your double-right-click action here
}
KeyWait, RButton, U T.2
If ErrorLevel
{ ;when I holding right mouse button for 200 millisecond
CloseContextMenu := true
Sleep, 200
Send ^v ;then it pastes
Sleep, 200
Send, {Enter} ;and send a {Enter}
}
Return

~RButton Up::
CloseContextMenu := false
Return

~LButton & RButton::
CloseContextMenu := true
KeyWait, RButton, L
KeyWait, LButton, L
Send ^c
Return

~RButton & LButton::
CloseContextMenu := true
KeyWait, LButton, L
KeyWait, RButton, L
Send ^v
Return

#If (CloseContextMenu)

RButton Up::
CloseContextMenu := false
Sleep, 200 ; or more
Send {Escape}
Return

#If

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: erann, jdfnnl, ziru and 338 guests