a_h_k wrote:
Am i right to assume that "deactivate" is to stop MouseClick from recursively calling RButton:: ?
If so, then try the following ...
Code:
; General
#SingleInstance Force
#Persistent
#NoTrayIcon
#IfWinActive ahk_class OpWindow
$RButton::
WinGet, operaWindow, ID, ahk_class OpWindow
MouseGetPos, x, y, selectedWindow
If (operaWindow==selectedWindow)
{
MouseClick, middle
Send {ENTER}
}
Else
MouseClick, right
return
$^RButton::
WinGet, operaWindow, ID, ahk_class OpWindow
MouseGetPos, x, y, selectedWindow
If (operaWindow==selectedWindow)
MouseClick, right
Else
Send ^{Click right}
return
#IfWinActive
not sure about the 'deactivate' I suppose it does so
however your script doesn't work either
I have noticed that if I right click on a link while having ESC key pushed, it opens the link in a new background tab, without opening in the current tab as well (as if I left clicked the link)
however I don't want ESC to be pressed, since it stops webpage loading
also, when I leave the finger on the touchpad and then I right click, it opens the link only in a new background tab, can anyone simulate this into a AHK script?
any ideas??? about ESC or maybe a better one?