Code:
$RButton::
MouseGetPos, , , id
WinGetClass , class, ahk_id %id%
ifnotinstring ,class, FTC_TableViewFull
send {RButton down}
return
$RButton Up::
MouseGetPos, , , id
WinGetClass , class, ahk_id %id%
ifnotinstring ,class, FTC_TableViewFull
send {RButton Up}
ControlGet, v, Visible, , FTCSkinButton29, ahk_id%id%
if (v)
{
ControlFocus, FTCSkinButton29, ahk_id%id%
Sleep, -1
ControlClick, FTCSkinButton29, ahk_id%id%
}
else
{
ControlGet, v, Visible, , FTCSkinButton11, ahk_id%id%
if (v)
{
ControlFocus, FTCSkinButton11, ahk_id%id%
Sleep, -1
ControlClick, FTCSkinButton11, ahk_id%id%
}
}
return