You may perform many BridgeComposer functions from scripts written in languages such as
(In Microsoft terminology, BridgeComposer can operate as a Windows Automation server.)
For complete details, see BridgeComposer "Help→Help
Topics", topics "Script menu" and "Automation".
BridgeComposer also supports classic ".bat-file" scripting. See BridgeComposer
"Help→Help Topics", topic "Command Line Interface".
and are intended for you to customize for your own particular needs.
(After downloading, you may modify them using Notepad or similar.)
These scripts require BridgeComposer version 5.61 or later.
Important: When viewing a script file in your web browser,
use "reload" (F5) to be sure you have the latest version.
The first three scripts are "includable", meaning that they are intended to be
combined with a larger script. They may be combined using copy/paste, or
using Windows Script Host markup (see the .wsf files below).
This "includable" script implements a Deal object which breaks down a
PBN [Deal] tag into an array of four Hand objects (for North,
East, South, and West). Each Hand object contains an array of four Suit
objects (for spades, hearts, diamonds, and clubs). Each Suit object contains an
array of card ranks.
The properties provided include Suit.hcp, Suit.length,
The functions provided include Hand.longest(), Hand.hasCard(card),
This "includable" script implements a getRandomBoard() function that
returns a Board object with a random [Deal] tag.
For efficiency, this
generates boards in batches. Optionally, double dummy analysis may be
calculated for the generated boards.
The following scripts perform a variety of functions.
They are intended to be useful as-is;
to serve as examples of how to take advantage the BridgeComposer scripting feature;
and to be customizable to meet specific needs.
This script updates the titles in a hand record file (perhaps received from a
third party such as ACBL or the Common Game). Customize the layout file
loaded by the script to
change settings, such as changing the "Site" to your own bridge club's name. This script may be
called from the BridgeComposer "Script" menu to update the currently
This script clears the [Room] tag in all boards in a PBN file. The
[Room] tag cannot be set using BridgeComposer, but it may be set in
documents created by other programs. For example, it is typically set to
"Open" or "Closed" when BridgeComposer imports BBO LIN files.
BridgeComposer displays the [Room] tag in its toolbar drop-down board
Sometimes, the player names in the Score Tables created via Tools→Import
Score Data are incorrect or otherwise undesirable for some reason. You
should probably submit a bug report, but you may use this script to hide the
names until a fix is available. (The Score Tables will still show the player
In Windows, open the file downloaded in step 1 (BCScript.zip).
Click on "Expand All" (to create the BCScript folder and its contents).
In BridgeComposer, click on the "Script→Favorites" menu command.
You will get a warning message about erroneous/malicious scripts. Click "OK".
In the "Script Favorites" dialog (see above), click the "Add" button (on its left side); a "File Open" panel
will be shown.
Open the BCScript folder created in step 3.
Select the script or scripts you are interested in
(use Shift+click and/or Ctrl+click to select multiple scripts).
Then click "Open".
Back in the "Script Favorites" dialog, click "OK".
Now, setup is complete. In BridgeComposer, click the "Script" menu and (at the
bottom) you will see the scripts you selected in step 8.
Simply select a script from the "Script" menu to run it.
Repeat steps 4 through 9 as desired to add additional scripts.
DISCLAIMER: Software from this site is provided "as is". In no
event shall the author be liable to you or any third party for any damages of
any kind arising out of or relating to the software or the use thereof.