I have written this script for myself, which is running 24/7 on my PC:
Code: Select all
SetKeyDelay,0
SetBatchlines,-1
Pause::Suspend
#ifWinActive PLAYERUNKNOWN'S BATTLEGROUNDS
+WheelDown::Send {WheelDown}
#ifWinActive PLAYERUNKNOWN'S BATTLEGROUNDS
WheelDown::Send {Numpad0}
#ifWinActive PLAYERUNKNOWN'S BATTLEGROUNDS
+WheelUp::Send {WheelUp}
#ifWinActive PLAYERUNKNOWN'S BATTLEGROUNDS
WheelUp::Send {Numpad1}
#ifWinExist Diablo II
XButton1::WinClose Diablo II
#ifWinExist Diablo II
XButton2::WinClose Diablo II
you can ignore the PUBG commands... this is all about the 4 lines on the bottom.
It closes Diablo II, if I am
- in Diablo II
- on my Desktop
but not when I am playing PUBG
Any ideas what's wrong here?
If PUBG and Diablo are open and I am in PUBG, the XButtons do not work at all... they just do nothing, and this is sad