Copyright © 2025 Murat Kalinyaprak
Shared under the terms of GNU General Public License.

=====================================================

mkdice-pass-file-xgx.exe is a tool to run experiments
with certain opening rolls, for either the bot or the
human player, in manual dice mode. It asks for the
opening roll and number of games to play in a money
session. It forces the selected roll as the opening
roll and then reads succeeding dice rolls from a text
file, of dice numbers separated by spaces, and feeds
them to XG as keyboard inputs in manual dice mode.

After each game, it automatically closes the message
window so that the user can just click on the board
to start the next game, which again starts with the
selected opening roll.

It can be easily adapted for other bots by changing
the manual dice input dialog window's name and also
sending an "enter" key event after dice numbers, if
needed.

Since keys are sent to the active window, it would
be advised to make sure no other processes can grab
focus while playing. Otherwise, it will still work
but some dice rolls may be skipped without being
sent to XG. That should not hurt the randomness of
dice rolls but may make it impossible to duplicate
the same sequence of plays for whatever reasons.

Unless you want to watch the dice numbers as they
are rolled, the command window may be minimized.
At the end of the session, the user is prompted to
press any key to close it.