Merge pull request #243 from Peptis/master
Added ability to change active view with mouse wheel
This commit is contained in:
commit
2535c05dc3
2 changed files with 11 additions and 0 deletions
|
@ -498,6 +498,8 @@ Config_UI_saveSession() {
|
||||||
#9::Monitor_activateView(9)
|
#9::Monitor_activateView(9)
|
||||||
#+9::Monitor_setWindowTag(9)
|
#+9::Monitor_setWindowTag(9)
|
||||||
#^9::Monitor_toggleWindowTag(9)
|
#^9::Monitor_toggleWindowTag(9)
|
||||||
|
~WheelUp::Manager_activateViewByMouse(-1)
|
||||||
|
~WheelDown::Manager_activateViewByMouse(+1)
|
||||||
|
|
||||||
;; Monitor management
|
;; Monitor management
|
||||||
#.::Manager_activateMonitor(0, +1)
|
#.::Manager_activateMonitor(0, +1)
|
||||||
|
|
|
@ -1240,3 +1240,12 @@ Manager_windowNotMaximized(width, height) {
|
||||||
Global
|
Global
|
||||||
Return, (width < 0.99 * Monitor_#%Manager_aMonitor%_width Or height < 0.99 * Monitor_#%Manager_aMonitor%_height)
|
Return, (width < 0.99 * Monitor_#%Manager_aMonitor%_width Or height < 0.99 * Monitor_#%Manager_aMonitor%_height)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Manager_activateViewByMouse(d) {
|
||||||
|
Local mousePositionX, mousePositionY, window, windowTitle
|
||||||
|
MouseGetPos, mousePositionX, mousePositionY, window
|
||||||
|
WinGetTitle windowTitle, ahk_id %Window%
|
||||||
|
if( InStr(windowTitle, "bug.n_BAR_") = 1 ) {
|
||||||
|
Monitor_activateView(0, d)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue