Survival without a mousewheel

Post Reply
Daagar
Posts: 89
Joined: Fri Feb 19, 2010 2:42 am

Survival without a mousewheel

Post 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

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Survival without a mousewheel

Post 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?

User avatar
Akaya
Posts: 414
Joined: Thu Apr 19, 2012 1:36 am

Re: Survival without a mousewheel

Post 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.

Post Reply