Keybinding with work around

Discussion in 'Other' started by pilsburry2, Dec 4, 2013.

  1. pilsburry2

    pilsburry2 Master Chief

    I highly recommend adding key binding which is very simple in the mean time I made a quick script for those that prefer arrow keys
    Just download AutoHotKey open a text editor (notepad is good) and save is at something like StarboundScript.ahk right click and click edit this script and paste this in

    #IfWinActive Starbound
    {
    NumpadSub::Suspend
    #MaxHotkeysPerInterval 200
    up::w
    down::s
    left::a
    right::d
    Rshift::MButton
    RControl::Control
    }

    Save the script and run it as an administrator and it'll work
     
    Skaruts and Fhqwhgod like this.
  2. Fhqwhgod

    Fhqwhgod Orbital Explorer

    Thanks. I will give this a try
     
  3. Leonard DeVir

    Leonard DeVir Poptop Tamer

    Totally aewsome find, it works like a charm!

    Quick tutorial to set everybody up:

    #IfWinActive Starbound
    {
    NumpadSub::Suspend
    #MaxHotkeysPerInterval 200
    up::w
    down::s
    left::a
    right::d
    Rshift::MButton
    RControl::Space
    Enter::e
    }

    This is my scripf file. As you can see, I bound "jump" (space) to right control and "use" (e) to enter. To add and customize your list, follow this link: http://l.autohotkey.net/docs/KeyList.htm
    It gives you a full list to every supported key. If you want to add a key, simply write your preferred key to the LEFT, then two times : , and to the RIGHT the key the game uses.

    Example: remapping jump, which has space as default hotkey, to Numpad 0.

    Numpad0::Space

    Numpad0 - the key you want to use to the left
    ::
    Space - the key which you want to remp.

    IMPORTANT: Please keep in mind, as long as the script is running your keys will ALWAYS be remapped! So to follow my example, if I rebind e to Enter, I wont have a enter key anymore (itll write ´e´ instead). To kill the script simply close all instances of AutoHotkey with the task manager :)
     
    Skaruts, Fhqwhgod and SlamTheLamb like this.
  4. SlamTheLamb

    SlamTheLamb Space Hobo

    Very useful, thanks!
     
  5. Markus68

    Markus68 Scruffy Nerf-Herder

    works for me thanks a lot!
     
  6. Fhqwhgod

    Fhqwhgod Orbital Explorer

    I changed some options but this is basically what I'm using now and it's great.
     
  7. MojoVersion8

    MojoVersion8 Space Hobo

    pretty nice tool, can even assign stuff to mouse button 4 & 5 with lines like
    XButton2::Space
     
    Fhqwhgod likes this.
  8. Skaruts

    Skaruts Industrial Terraformer

    Hmm, I hadn't thought of this, but this is just what I need because the default keys aren't very handy to me. WASD is perfect, but the rest... I need inventory on TAB and other stuff. Gonna play around with it.

    Thanks.

    EDIT: one thing I'll do is to assign control to crouch, and S to a macro to drop down from platforms in one key press. :) Makes more sense to me.
     
    Last edited: Dec 7, 2013
    Fhqwhgod likes this.
  9. Skaruts

    Skaruts Industrial Terraformer

    Done. I'm posting it in case anyone needs to know how to do the little trick I did with the S key. :)
    Code:
    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
    
    #IfWinActive Starbound
    {
        NumpadSub::Suspend
        #MaxHotkeysPerInterval 200
    
    ; drop down platforms (S)
        s::
            Send {s Down}
            Send {Space}
            Sleep, 100  ;500 seems too long and skips some platforms if too close to each other
                        ;50 seems to not drop sometimes
            Send {s Up}
        return
    
    ;Crouch
        Ctrl::s
    
    ;Inventory
        Tab::i
    
    ; Swap handheld
        Mbutton::x
    
    ;Observe
        f::N
    
    ;Swap hands
        XButton1::z
        q::z
    
    ;Drop item
        \::q
    
    ;Pan view
    XButton2::Control
    }
    
     
    Last edited: Dec 13, 2013
    Leonard DeVir likes this.

Share This Page