Hi, I use a very simple and effective alt tab script like the one mentioned here.
LControl & wheelup::ShiftAltTab
LControl & wheeldown::AltTab
Also I use Opera Browser and to switch tabs I use Right Mouse & Wheel (opera feature), which is even more comfortable.
I want to make a script to use the same combination outside opera to switch applications, and inside opera to switch tabs (current function) with no success.
Code:
RButton & Wheelup::
ifWinActive, ahk_class OpWindow
{
Send, {RButton}{Wheelup}
}
else
{
Send, {Shift}{Alt}{Tab}
}
Return
RButton & Wheeldown::
ifWinActive, ahk_class OpWindow
{
Send, {RButton}{Wheeldown}
}
else
{
Send, {Shift}{Alt}{Tab}
}
Return
My idea was to detect opera and do nothing (maintain functionality), without opera send alt tab.
The script even block my right mouse button, a total failure.
Any help would be appreciated and will help make the world a better place to live (?).