Get the user's keybinding settings

Discussion in 'Mod Discussions' started by dangerdan89, December 17, 2013.

  1. dangerdan89

    dangerdan89 New Member

    Messages:
    3
    Likes Received:
    0
    Is there a way to get the users keybindings through the UI api? I found localStorage.settings but they arent kept in there. Seeing as there isnt a definitive guide to the api, still being in development and all, how would I figure this out? or does anyone know if this info can be retrieved, and if so how?
  2. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    You mean export them? E.g to another computer.
    stormingkiwi likes this.
  3. dangerdan89

    dangerdan89 New Member

    Messages:
    3
    Likes Received:
    0
    As in get a list of them all in JavaScript, for use within a mod.

    I have found "default_keybinds" but obviously these are just the defaults, not the actual user's binds.
  4. dangerdan89

    dangerdan89 New Member

    Messages:
    3
    Likes Received:
    0
    found it, it is in localStorage! sorry only just getting started with modding :)
  5. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Now that's a good idea :)
  6. Clopse

    Clopse Post Master General

    Messages:
    2,535
    Likes Received:
    2,865
    Have a look in the Appdata files. Pretty sure there is a file there that has saved settings. I have mine backed up somewhere.
  7. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Yes they are there.
    But localStorage is encrypted.
  8. Clopse

    Clopse Post Master General

    Messages:
    2,535
    Likes Received:
    2,865
    Yeah couldn't open with sublime but I think notepad+ worked. Been a while now and away from computer.

Share This Page