Help for players who can't use the mouse wheel to zoom

Discussion in 'Support!' started by Col_Jessep, June 8, 2013.

  1. Col_Jessep

    Col_Jessep Moderator Alumni

    Messages:
    4,227
    Likes Received:
    257
    I've seen a couple of players requesting other buttons for zooming in and out in PA because they could not use the mouse wheel for it.

    Here is a quick fix that might help you until a better solution can be implemented. It will allow you to use the +/- keys on your numpad to zoom in PA.

    1) download and install AutoHotKey: http://www.autohotkey.com/ (GNU licence, free)

    2) unzip the file Planetary Annihilation AHK v#.##.ahk.zip and run it

    3) put the file into your Windows Startup folder to have it available at all times. (optional)

    Notes:
    This script should only work if you have Planetary Annihilation open but it might trigger if you have any application focused that has the words Planetary Annihilation in the title. Might trigger in your browser. I don't expect any serious problems, just a FYI.

    F1 will display a help window. It's pretty useless right now but I might add more functionality later.

    Here is the code. It is very easy to adjust the script to your preferences:

    Code:
    #IfWinActive Planetary Annihilation
    
    F1::
    MsgBox, 0, Jessep's Planetary Annihilation AHK Help, 
    (
    v0.01
    This script maps the zoom to the + and - keys on your Numpad.
    )
    , 5
    return
    
    NumpadAdd:: ;maps the mousewheel up to + key on Numpad
    Send {WheelUP}
    sleep 30
    return
    
    NumpadSub:: ;maps the mousewheel down to + key on Numpad
    Send {WheelDown}
    sleep 30
    return
    Hope it helps!

    Attached Files:

  2. Col_Jessep

    Col_Jessep Moderator Alumni

    Messages:
    4,227
    Likes Received:
    257
    reserved
  3. simonhawk

    simonhawk New Member

    Messages:
    44
    Likes Received:
    0
    Thanks man, good job!
  4. Col_Jessep

    Col_Jessep Moderator Alumni

    Messages:
    4,227
    Likes Received:
    257
    You are welcome!

    I'm working on a way to make the input smoother and to make it work with buttons that don't have an autorepeat.

    v0.02 allows you to zoom in and out with the thumb mouse buttons 4 and 5 (usually used for browser history back and forth).



    The numpad still works too, just in case.

    Attached Files:

  5. slev01

    slev01 New Member

    Messages:
    17
    Likes Received:
    0
    Many thanks, the script works a real treat, I can tell you. Much smoother than other options I've tried.
  6. elamre

    elamre New Member

    Messages:
    4
    Likes Received:
    0
    Exactly what i needed :D
  7. wheeledgoat

    wheeledgoat Well-Known Member

    Messages:
    409
    Likes Received:
    302
    autohotkey is the BOMB. i've used it for so many things, including scripts that automate my stuff at work. def. worth familiarizing yourself with, for so many reasons.
  8. ucsgolan

    ucsgolan Member

    Messages:
    158
    Likes Received:
    0
    Does it count for the Magic Mouse? :roll:
  9. Athlavard

    Athlavard New Member

    Messages:
    2
    Likes Received:
    0
    Any chance we can get a fix for a macbook pro? Also since you seem to have some knowledge on the subject do you know how we could change our keybindings on a mac?
  10. Col_Jessep

    Col_Jessep Moderator Alumni

    Messages:
    4,227
    Likes Received:
    257
    I have no solution for Macs, sorry. Never had one.
  11. carsey1302

    carsey1302 New Member

    Messages:
    5
    Likes Received:
    0
    Does this work for ma cause autohotkey is a exe file and my mouse doesn't work s well
  12. Col_Jessep

    Col_Jessep Moderator Alumni

    Messages:
    4,227
    Likes Received:
    257
    I'm not entirely sure what you mean but it should work on every Windows system after you install AHK and launch the file.
  13. greppy

    greppy Member

    Messages:
    32
    Likes Received:
    12
    Does this do the same thing as Control + Arrow keys?
  14. darkpenguin

    darkpenguin New Member

    Messages:
    3
    Likes Received:
    0
    this is the best if you are unable to use your hands.
    www(.)dwvac(.)com

    i have used it for EVE Online. and its ok i think.
    i use MacroGamer and VAC together and its all right.

Share This Page