DMDX Help.


Command Line Options.

    There are a few command line options that DMDX will use, these are set in the command line in the shortcut to run DMDX.  To make a shortcut that you can modify (the default ones the installer makes are uneditable unfortunately) right click the desktop, select New / Shortcut, browse to / Program Files / DMDX and select DMDX.exe.  The command line is actually labeled Target:


-buffer n
    Some video card drivers are f..., well, broken and return errors (or cause crashes) if DMDX requests large numbers of back buffers, notably the Cirrus Logic 5465 AGP drivers. This may be caused by some confusion over what is video memory and what is not, in any event the user needs a way to override DMDX's calculation of the number of video buffers available and this is it.  Version 3's install creates several shortcuts that make needing to do this less likely.

-run \path\itemfilename.itm.rtf
    DMDX will automatically run the item file name following -run. Data will be automatically saved and DMDX terminated if the run is successful, otherwise no data will be saved. This should be the last option on a command line as everything following -run is used for a file name (to easily deal with spaces in names and so forth). Should DMDX exit immediately and you are unable to tell what error has occurred consult diagnostics.txt to find out what happened.

    If you are running DMDX from the command line in a batch file to automatically process it's output files then the following syntax is convenient to note for use in batch files:
start /wait dmdx.exe -run whatever.rtf
    Here the MS-DOS prompt will wait until DMDX exits before processing the next line in the batch file, without the start /wait it would immediately continue on concurrent with DMDX was executing.

-ez
    DMDX runs in EZ (or easy) mode with this option.  Use of TimeDX to time displays is not required however displays are no longer synchronized with the raster.  Facilitates demonstrations of DMDX with minimal setup (especially when used with <vm desktop>) and should not be used to gather time sensitive data.  As of DMDX 3.2.4.1 EZ mode also only uses triple buffering (same as -buffer 2) unless overridden by -buffer later on the command line. No point having EZ mode hammering people's display drivers asking for oodles of back buffers and thus exposing unstable drivers unnecessarily.  As of 4.0.0.0 EZ mode also sets Soldier On mode (below) that restores surfaces after focus is lost (usually because another application has popped up window).

    Because the duration of a frame is no longer accurate use of the frame option % or <%> is inadvisable and instead <%ms> should be used. When an unknown display refresh rate is requested as always happens under 98/ME or when something like <vm 1024,768,16,0> is used then a 60Hz rate is assumed (even if the actual display rate is completely different).

-subjid xxxx
    This option specifies the subject ID when the -run option is used.  Available in item files with macro S.

-display n
    Causes DMDX to use display driver number n, handy in a multi monitor system with a remote subjects display when you want to test something without going to the subjects display, you can have two shortcuts to DMDX, one that uses the normal subjects display and another with the command line parameter -display 1 for using the primary display for output. The n comes from the number that is the first part of any display driver name as displayed by
TimeDX's Video Driver selection dialog.

-nosmartquotes
    Causes DMDX to no longer check for Microsoft Word's Smart Quotes, this is needed for extended double code page character fonts (such as Asian ones) that DMDX doesn't know about.  Word in it's infinite wisdom unless specifically told to not do so replaces normal quotes with matching left and right quotes (extended characters \'93 and \'94) so DMDX normally has to know about them, however Asian fonts are full of extended characters and tend to use those codes for other things besides fancy quote marks, so DMDX wrongly interprets them as text delimiters.  DMDX currently knows about three character sets (128, 134, 136) that are Asian that need DMDX's support for Word's Smart Quotes turned off, -nosmartquotes is provided for other new ones that turn up from time to time.  See -unicode below.

-nodispatch
    This option overrides the non-use of the millisecond callback for video retrace synchronization. It's being an utter pig to implement and preliminary results show that benefits are negligible to none, more like none. In a nut shell, you don't want to use this, it's in there so I can continue development of it when I've nothing better to do.

-unicode
    This option turns on the Unicode code path through DMDX.  Use of the command line option overrides the dialog box Unicode control. 

-soldieron
    Prior to version 4.0.0.0 of DMDX if another application popped up a window or DMDX otherwise somehow lost it's focus (sticky keys anyone?) it would basically hang up.  Control of the machine was possible to get back with Alt-TAB and you could kill off DMDX with the task manager but that run of DMDX was toast.  Onus was always on the experimenter to make sure an experimental machine was free of such software, after all if DMDX just recovered from such situations data integrity was sure to suffer, not to mention display integrity (it is possible to have display elements from previous items remain on the screen).  Given the advent of remote internet testing it behooves us to make DMDX behave a little better so now the dreaded DDERR_SURFACELOST is caught and the job is terminated gracefully unless SoldierOn mode is activated with -soldieron in which case all display surfaces will be set to the default background color and DMDX will resume execution flagging that an error occurred in the output file (.AZK or .ZIL).  Only real issue remaining is Alt-TABbing to the menu window of DMDX where it won't do anything, one has to Alt-TAB to the first DMDX window (the DX window) and then the job will resume.



DMDX Index.