Adapting from a previous script and cannot code, so this could be completely wrong. But I have this
Code: Select all
global MessageList := [[1, 2], [3, 4], [5, 6], [7, 8]]
Which is essentially a string of WinActivates. My windows are identified with #1, #2, #3 and I have two screens so I want to be able to toggle between each of the following four functions using WheelUp and WheelDown only:
WinActivate #1 and WinActivate #2
WinActivate #3 and WinActivate #4
WinActivate #5 and WinActivate #6
WinActivate #7 and WinActivate #8
Trying to use ++Index > 5 for WheelUp and the opposite for WheelDown but failing.