VOGONS

Common searches


First post, by MarownIOM

User metadata
Rank Newbie
Rank
Newbie

I've not had much luck with the keymapper -- but I'm trying to figure out how to map a key to do multiple keystrokes.
Has anyone done this?

Thanks!
Let Vogons be Vogons

Reply 1 of 3, by Nilex

User metadata
Rank Newbie
Rank
Newbie

Say you want to type "asd" (in that order) by pressing "F1":

  • open maper
    click "a", click Add, press F1 (on your keyboard)
    same with "s" & "d"
    click Save then Exit

F1 spits out "asd" in order you added them.

Thought this practical example is simplest way to understand instead me trying to explain the counter-intuitive mapper.

If you want "a" to type out "aaa" then tough shit. No can do. There's also a way to temporarily disable the bindings while
you type (e.g. when naming a save) but I've had mixed results so I rather won't say. Maybe someone else can do that.

Reply 2 of 3, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Binding order is tricky to exploit. It holds for the session in which you change the mapping, but is usually lost when DOSBox is restarted unless you happen to bind in event order. Perhaps it would work to manually reorder the events listed in the keymapper file; not sure about that, though, and even if it does work you'd have to redo it if DOSBox is ever used to write out the mapper file again.

Reply 3 of 3, by Osprey

User metadata
Rank Member
Rank
Member

If you're on Windows, you can do this easily with a 3rd party utility, AutoHotkey (http://www.autohotkey.com). I've done it several times for utilities that I've uploaded. Simply create the script, run it alongside DOSBox and it's like the hotkeys are part of DOSBox, even though they're not. I'm happy to give you help with that, if you'd like.