DOSBox Keys and Functions


Updated for DOSBox 0.74

DOSBox has a number of specialised function keys that can be used to quickly adjust the program features at any time during its operation. Either when in a DOS command prompt, when running a full screen program or playing a full screen game. I will list all the function key combinations and their usage.

Full Screen Mode

Like any Windows application you can switch DOSBox between Windowed and full screen mode by using the ALT-ENTER key combination.

Pausing

DOSBox can be paused at any time by pressing ALT-Pause. Once paused, you can resume your activity by repeating the same combination.

Rescan / Update Directory Cache

In the previous tutorial I spoke about the need of using the rescan prompt command. This is needed whenever a drive, folder or file used by DOSBox was changed externally, such as by Windows Computer. Instead of typing rescan at prompt you can also use the CTRL-F4 key combination to update the cache on all your DOSBox mounted drives and images.

Movie Recording *

DOSBox has the ability to record directly to a movie file. By default the movie file will be stored in the capture sub-directory within the DOSBox program directory. within the Users AppData, Local, DOSBox directory. There is a shortcut to this listed as Capture folder Screenshots & Recordings which is in the Extras sub-folder in the DOSBox menu item within Windows start menu.

To initiate recording you press the CTRL-ALT-F5 combination. To stop recording, you press the same combination again.

When engaged DOSBox will create an AVI movie, including any audio using the ZMBV (Zip Motion Blocks Video) codec. It will be named based on the active DOS program’s file name that is currently active. While the movie recording is designed mainly for recording games and demos, you can also use it to record DOS prompt activity.

To successfully record a DOSBox movie you must first make sure you have installed the ZMBV codec to your computer. Again, Vista users should run the codec install shortcut using the ‘Run as Administrator’ option.

DOSBox 0.74 Screenshots & Recordings

Screenshot Capture *

You can save a screenshot of DOSBox’s content at anytime by using the CTRL-F5 combination. All captures will be stored in the default DOSBox captures directory. This can be found through a shortcut listed as Capture folder Extras, Screenshots & Recordings within the DOSBox Windows start menu.

Audio Recording *

CTRL-F6 will engage audio recording for DOSBox. You can initiate this at any time, even when there is no audio output from DOSBox. All audio will be recorded and saved as a standard WAV file and stored in the default Capture folder Extras, Screenshots & Recordings DOSBox menu item. The WAV audio format is uncompressed and widely supported. So you can easily use any audio converter program to compress and convert the audio into any format you wish, including MP3.

If you are looking for an audio converter, most popular CD-DVD burning packages include some form of audio conversion tool.

In Roxio Creator you can use the Sound Editor’s export function, while Nero has the included WaveEditor program. The free and open sourced Audacity would be another popular choice.

Quit, Exit or Kill

At anytime in full screen or windowed mode you can terminate the DOSBox application by using the CTRL-F9 combination.

Speed Adjustment

By default DOSBox will automatically detect and adjust its emulated speed to the DOS program it is running. Occasionally it gets this timing measurement wrong so DOSBox gives you the option to manually tweak the speed the speed settings.

CTRL-F11 will slow down the emulation
CTRL-F12 will speed up the emulation

ALT-F12 will remove all speed restrictions imposed by the emulation

Restoring your Mouse

Occasionally you will run a DOS program that has inbuilt mouse support. Many newer adventure games fall into this category. If a program supports the mouse, DOSBox automatically locks your mouse into its program window for exclusive usage. If you wish to restore the mouse back to general Windows usage press CTRL-F10.

* Note, Windows Vista users will need to run DOSBox using the ‘Run as administrator’ if you wish to record or capture. You can find this option by right clicking the DOSBox program shortcut in Windows start menu.

About these ads

24 thoughts on “DOSBox Keys and Functions

  1. It would be nice to have a Mac version, I’m sure they are not too dissimilar but the Mac version does not have an install directory with a folder for screen captures and video captures and I’m still tryin to figure out how to do it..

  2. I don’t have access to OS/X. And seeing Apple do not allow you to run OS/X on non-Mac hardware, I never will.

    From quick research it seems the Mac version of DOSBox is not unlike the GNU/Linux version. So you have to create the directories yourself. I suggest reading this to get yourself up and running .. http://www.dosbox.com/wiki/DOSBox_and_Mac_OSX

    Once complete, in the folder containing your DOSBox.conf file and DOSBox, you should create a “CAPTURE” directory. That is where, by default DOSBox will send any captures. You can change that directory to a different location, but you will have to search for and edit the line captures=capture in your DOSBox.conf.

    Also instead of using the [Ctrl][F5] keys for screen-shot capturing, you might wish to try [Option][F5] etc.

    Sorry that is the best I can do without access to a Mac myself.

  3. I had a play around with it and got all the capturing to work but the video playback will not produce anything visually, only visualy. I am trying to rectify this but am not able to play with the ZMBV codec as you suggest on my platform.

    Thanks for your reply.

  4. I am guessing ZMBV playback wouldn’t work on something like Apple’s Quicktime. You would need a player that is based on the open source ffmpeg library. Try MPlayer or VLC media player. Both are available for the Mac, and are open sourced, I prefer VLC myself.

    MPlayer
    VLC media player

  5. I was looking for a way to restore my mouse. I used to do that by going fullscreen and then restoring the window. I found a better way to do that here. Thanks.

    • The way I’ve been restoring my mouse to general Windows use is to tap the mute button on my keyboard; when I want to use the mouse within the game again, I move the cursor to anywhere in the DOSBox window & click. It’s nice to hear of other ways to do it, though (including the “official” DOSBox keyboard shortcut for doing it).
      BTW, I’ve persuaded my teenage daughter to teach me how to do video capture, so I can attempt to record “Let’s Play” walkthroughs of some of my favorite DOS games. I’m guessing that to add voice narration or on-screen text captions, one would need to use a 3rd-party program. Windows Movie Maker comes with newer computers (as part of Windows Live Essentials) — would that work, or would something else be preferable? (Please excuse my ignorance; I know my daughter has created music lyrics videos with Windows Movie Maker, but I haven’t yet used the program myself.)

      • YouTube actually allows you to do that in post, after you have uploaded the video. You can annotate, add subtitles, captions or even replace the audio.

  6. Hi, my problem is to use CTRL-F11 and CTRL-F12 on PSP. I cannot define to use them even with

    INPUTMAP select lctrl
    INPUTMAP ltrigger f11

    or such tricks. Is there a way to use speed changing hot keys somehow on PSP under DosBox?

    Thanks for your help in advance.

    • I am sorry I have no idea in regards to the PSP port of DOSBox. Is there no specific PSP documentation or README included with the port package.

    • Thanks for explaining that, Ben! I thought I was going to have to buy a copy of “YouTube for Dummies” to learn how to post gameplay videos of games running under DOSBox.

  7. I took a bunch of screenshots the first time I ran it. They are not in my program files folder. There is no DosBox.conf or INI folder. There is no folder named ‘captures’ in my appdata or in my documents or my documents\my pictures. There is no “shortcut to captures” in the start menu. In short, everything on this page is wrong and has not helped me find the screenshots I captured… at all. Misinformation.

    • Had you looked at the date of the article you would have noticed it published 2.5 years ago. You might have also realised it is referring to an earlier edition of DOSBox, 0.72 to be exact. Significant changes have been made in the two revisions of DOSBox since the original publication of this article. As I am a nice person I have decided to revise the article, good luck and maybe in future you should pay more attention rather than just berating peoples work.

  8. Some keyboards (of the newer variety) as well as nearly ALL laptop keyboards have different keycodes than older qwerty keyboards. I have noticed myself that many programs on dosbox can have issues if it asks for a specific shift or Ctrl key (left or right), as well as the ~ key. There is a way to fix this in Dosbox, but for the life of me I cannot remember the setting.
    Instead of digging through the manual, which will read like stereo instructions (such an outdated notion now, eh?) if you are like me, simply do a search on google. (that’s how I found the answer)

    I believe that my question was “getting ~ to work in dosbox”, or “~ wont work in dosbox”, possibly even “how to use ~ in dosbox” you can also type “tilde” instead of ~.

    This is how I found the answer (within just a minute or two). It has to do with how DosBox lists your keyboard. There are many types of keyboards, most for different languages, but there are a few english ones, and you will need to switch to one of those. (I am on a laptop and I assure you, this fixed all of my keys.)

    I apologize for the long post. I am going to add section 7 of the Dosbox manual here, since it contains the information you are seeking. I will attempt to use the “spoiler Code” to cut down on the size of this post. If it works (I have never posted here, and I don’t know if the BBCode works, nor do I know if I will be able to edit it afterwards…) then you will see the Chapter Title. Click on it to expand it so that you can see the information in it. If the spoiler code does not work, you will just see the whole thing with a BBCode tag around the heading.

    ===================
    [spoiler=8. Keyboard Layout:]
    ===================

    To switch to a different keyboard layout, either the entry “keyboardlayout” in the [dos] section of the DOSBox configuration file can be used, or the internal DOSBox program keyb.com (Section 4: Internal Programs) Both accept DOS conforming language codes (see below), but only by using keyb.com a custom codepage can be specified.

    The default keyboardlayout=auto currently works under windows only. The language is chosen according to the OS language, but the keyboard layout is not detected.

    Layout switching
    DOSBox supports a number of keyboard layouts and codepages by default, in this case just the layout identifier needs to be specified (like keyboardlayout=PL214 in the DOSBox configuration file, or using “keyb PL214″ at the DOSBox command prompt). The list of all layouts built into DOSBox is here: http://vogons.zetafleet.com/viewtopic.php?t=21824

    Some keyboard layouts (for example layout GK319 codepage 869 and layout RU441 codepage 808) have support for dual layouts that can be accessed by pressing LeftALT+RrightSHIFT for one layout and LeftALT+LeftSHIFT for the other. Some keyboard layouts (for example layout LT456 codepage 771) have support for three layouts, third can be accessed by pressing LeftALT+LeftCTRL

    Supported external files
    The FreeDOS .kl files are supported (FreeDOS keyb2 keyboard layoutfiles) as well as the FreeDOS keyboard.sys/keybrd2.sys/keybrd3.sys libraries which consist of all available .kl files. See http://www.freedos.org/ for precompiled keyboard layouts if the DOSBox-integrated layouts don’t work for some reason, or if updated or new layouts become available.

    Both .CPI (MS-DOS and compatible codepage files) and .CPX (FreeDOS UPX-compressed codepage files) can be used. Some codepages are compiled into DOSBox, so it is mostly not needed to care about external codepage files. If you need a different (or custom) codepage file, copy it into the directory of the DOSBox so it is accessible for DOSBox. If you place all ten ega.cpx files (from FreeDOS) in DOSBox folder, an appropriate codepagefile for the requested layout/codepage is chosen automatically.

    Additional layouts can be added by copying the corresponding .kl file into the directory of the DOSBox configuration file and using the first part of the filename as language code.

    Example: For the file UZ.KL (keyboard layout for Uzbekistan) specify “keyboardlayout=uz” in the DOSBox configuration file.
    The integration of keyboard layout packages (like keybrd2.sys) works similar.

    Note that the keyboard layout allows foreign characters to be entered, but there is NO support for them in filenames. Try to avoid them both inside DOSBox as well as in files on your host operating system that are accessible by DOSBox.[/spoiler]

    Well, whether that worked or not, I just wanted to add that you will have a much easier time getting this setting fixed if you use a front-end for dosbox. (Ignore this if you know what a front-end is.**A Front-End is a “shell” program that lets you interface with another program in a usually more efficient way.**)
    The front-end I use is D-Fend Reloaded. It has a drop down menu in its game properties tab which you can use to select your keyboard. (And it’s extremely helpful in every other way. You can set it up for each game, to add cheats, manuals and hintbooks, extra game files, every setting in dosbox can be set for each game, and will be saved and remembered so all you have to do is click the game in the list to start playing.)

    P.S. : It’s not just newer keyboards that seem to have the problem, it is also HP(Hewlett Packard) keyboards that seem to use a different layout than the one recognized by dos. The right setting will restore your non-functional keys. However, if this still does not work for you, then there is one SURE-FIRE method of fixing the problem, but as the saying goes, “It’s like going around your arse to get to your elbow.” Basically you can use a keymapping program to give your non working keys a different keybinding, which will then be recognized by Dosbox, but that ONLY works if you are needing the key for a control in a game. It still will not work for typing in commands, because you are basically changing the key (for example, Left Shift) to something else that Dosbox will recognize with your current keyboard layout. (like NUMPAD 5, from the extra number keys on the right of most full sized keyboards)
    That causes the dosbox program to recognize the NUMPAD 5 key every time the Left Shift key is pressed. This can cause issues later on as that key might do something else, and really, the most simple way (don’t be intimidated!) is to change the layout of your keyboard as described above in section eight of the DosBox manual. If you cannot determine what layout you need, then trial and error will show you the way in less than 3 minutes. Just try one setting, go into the DosBox prompt, see if you can type those keys.
    If you cannot, then exit DosBox, select another setting, preferably the next down the list just to be sure you don’t miss one, (only the english ones!) and then repeat the process. It really shouldn’t take that long.

    I fixed my problem in this way, no problem. I hope it helps, and if all else fails, just do a search for the right setting, maybe add your model of keyboard/laptop to the search string, and you should find what you seek.

    Good luck, and Happy Gaming!!!

    -Volyren Nightsong (Volyren…….(a)………gmail…………com)

    [just replace the (a) with @ and remove the extra dots.....obscure your email addy like this to avoid getting tons of spam. This way the spambots that search everything for email addresses won't recognize it as a valid target]

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s