Page 1 of 1

Survival without a mousewheel

Posted: Tue May 22, 2012 1:56 am
by Daagar
I occasionally play from a laptop, and thus lack access to a mousewheel. This is survivable for the most part, but the mapper window currently can only be zoomed in/out with one. This is, as you can imagine, annoying. Here's a quick solution for Windows users:

* Install AutoHotKey from http://www.autohotkey.com
* Create a script with the contents below. For a real quick-start, the first time you run autohotkey, it will offer to create a sample script. Let it do so, and replace the contents with the below and right-click on the autohotkey tray icon and 'reload script'. Ta da.

The following script binds mousewheel up/down to CAPSLOCK+w/CAPSLOCK+s. You can of course change this to whatever you desire. This script courtesy of http://superuser.com/questions/255209/h ... autohotkey

Code: Select all

CapsLock & w::
 MouseClick,WheelUp,,,10,0,D,R
return

CapsLock & s::
 MouseClick,WheelDown,,,10,0,D,R
return

Re: Survival without a mousewheel

Posted: Tue May 13, 2014 12:45 am
by SlySven
Sorry to necro this but I also sometimes use a mouse without a wheel and I have a possible source code change to leverage-in the ability to zoom in and out by pressing either the middle or BOTH outer mouse buttons and moving the mouse up and down - which can be faster for large zoom value changes. Would this be a change others would like to see included?

Re: Survival without a mousewheel

Posted: Tue May 13, 2014 4:12 pm
by Akaya
@Daagar There is a setMapZoom function which can easily be binded to whatever you like. Removes the need of a 3rd party script.

@SlySven That is clever. I like it and would use it.