Im windows8 user, and Im trying to switch left and right buttom only inside Irfanview (picture viewer application) because the default pan always is left mouse buttom, but in irfan view is the right mouse buttom, So I want to whenever I hold down left mouse button, it send hold down right mouse buttom instead. I have tried this macro: it works inside Irfanview but also affect windows desktop, and sometimes some other programs also.
#NoEnv
#SingleInstance, Force
#Persistent
#InstallMouseHook
#ifWinActive ahk_class IrfanView
LButton::RButton
RButton::LButton
#IfWinActive ahk_class FullScreenClass
LButton::RButton
RButton::LButton
Could someone please give me some advice, pehaps is the conditional??
Thanks advanced.