Code: Select all
~LButton::
If (A_TimeSincePriorHotkey<400) and (A_TimeSincePriorHotkey<>-1)
{
MouseGetPos,xpos,ypos
sleep,50
if ( WinActive("ahk_class Chrome_WidgetWin_1") )
{
MouseClick, right
}
ToolTip,% ypos
}
Return
Code: Select all
~LButton::
If (A_TimeSincePriorHotkey<400) and (A_TimeSincePriorHotkey<>-1)
{
MouseGetPos,xpos,ypos
sleep,50
if ( WinActive("ahk_class Chrome_WidgetWin_1") )
{
MouseClick, right
}
ToolTip,% ypos
}
Return
Code: Select all
#Requires AutoHotkey v1.1.33
#If WinActive("ahk_class Chrome_WidgetWin_1")
~LButton Up::MouseClick , R,,, A_PriorKey = "LButton"
&& A_TimeSincePriorHotkey < 400 && A_TimeSincePriorHotkey > 0
#If
Works like a charm! Much appreciate it.mikeyww wrote: ↑08 Mar 2023, 23:25Code: Select all
#Requires AutoHotkey v1.1.33 #If WinActive("ahk_class Chrome_WidgetWin_1") ~LButton Up::MouseClick , R,,, A_Priorkey = "LButton" && A_TimeSincePriorHotkey < 400 && A_TimeSincePriorHotkey > 0 #If
Users browsing this forum: imnewtoahk and 100 guests