REXX GUI examples


A very simple text editor example for REXX GUI.


An example of scanner/camera support for REXX GUI.


Demonstrates one approach for using a TAB control.


Shows how to limit the dimensions (ie, width and height) to which a user can size a REXX GUI window.


Shows how to change the mouse pointer shape (image) in a REXX GUI window.


Shows how to change the color for TEXT controls in a REXX GUI window.


Shows how to change the color for ENTRY controls in a REXX GUI window.


Shows how to get the names of any files whose icons are dragged and dropped upon a REXX GUI window, or the controls inside it.


Shows how to automatically dismiss a window (without user intervention) after a certain time-out.


Counts off the elapsed hours/minutes/seconds since a window was opened.


Shows how to implement user abort in a loop that takes a long time to complete some operation. Also download the childabort.rex script.


Presents a directory browser dialog to pick out a directory. Then it searches that directory and all sub-directories inside of it for any filenames that end in .HTM or .HTML and presents those filenames in a window with a scrollable list box. The user may select any or all of the names in the list, using the mouse, and then click on an Ok button to perform some operation upon only the selected files.

You can use this example as a skeleton script to show how to recursively search a directory tree for specific filenames that match some criteria, display those filenames in a list for selection by the user, and process his selections.


Shows how to enable/disable and check/uncheck menu items on-the-fly.


Shows how to present popup menus for a window and/or its controls.


Shows how to add headings/items to a menu on-the-fly.


Shows how to add items to a Tree control on-the-fly.

NEW!!! view.rex

Shows how to use a VIEW control to display a table.


Shows how to add popup help to your script. Also, demonstrates how to present help in docking windows like REXX Programmer Center does.

NEW!!! showpic.rex

Shows how to use REXX GUI's GuiPicture() to load and display jpg, gif, and other image file formats.

NEW!!! console.rex

Shows how to use an entry control to mimic a console output window.


An example of using the HTML control, and also the TAB control, to create a tabbed browser.


Shows how to do a lasso selection of controls in a REXX GUI window. A lasso selection is where you click and hold the left mouse button, and then move the mouse to draw a selection box around the desired controls.

Reginald's FUNCDEF feature

These are scripts that utilize Reginald's special FUNCDEF() function, which allows you to register and then directly call any function in any DLL, even if that DLL was not designed with REXX support built in. This includes being able to call any Windows operating system function directly from your REXX script.


Shows how to download a web page (or any file) from the internet.


Shows how to list the contents of an internet FTP site.


Shows how to download a file from an internet FTP site.


Shows how to send an email (with attachments).


Shows how to exchange text with the Windows clipboard (and any other program that can do likewise).


Shows how to create a ZIP archive from several disk files. Also requires the zip32.dll


Shows how to unzip a ZIP archive. Also requires the unzip32.dll

Scripts that show how to create a ZIP archive using the RxZip add-on, and how to extract files from an archive using the RxUnzip add-on. This is easier to use then the above examples zip.rex and unzip.rex, and also supports encryption and memory-based archives.

NEW!!! hyperlink.rex

Demonstrates the Hyperlink style for a PUSH control, to launch a browser displaying a web page.


Shows how to use the SQL Lite DLL to read/write SQL database files on a local hard drive.


Shows how to play a video (AVI) file.


Shows how to play tracks of an audio CD (in your CDROM drive).


Shows how to place an icon in the system tray, and respond to clicks upon it with a REXX GUI window. Also download the myicon.ico test icon to try out this example.

Shows how to use Microsoft's CARDS32.DLL (with REXX GUI) to create a graphical playing cards game. This ZIP file also includes that DLL if you don't already have it installed on your system.


Shows how to read information about a particular file such as what type of file it is (ie, a DLL, an application, a driver, a font, etc), its version and product numbers, its copyright, the company that made the file, what operating system it designed for, its description, its original file name (in case it has been renamed), etc.


Shows how to access the Windows registry. (Note: Reginald's VALUE() function offers easier access, but direct access can handle troublesome key names, such as ones that contain embedded backslashes. Also, VALUE() is limited to reading/writing string values -- not binary ones).


Shows how to present the standard Font dialog to pick a font and fill in a LOGFONT.


Shows how to present the standard Color dialog to pick a color and return an RGB value.


Shows how to launch a "detached" child REXX script (from a main REXX script) so that the child runs in a separate process. The two scripts then run simultaneously and independently of each other. You should also download the child.rex script to test this.


Shows how to move the mouse, and simulate mouse clicks.


Shows how to retrieve information about an account on a Windows system.


Shows how to query whether a drive is a USB device.


A zip file containing some example scripts for RxMIDI, including a script that disassembles a MIDI file into a text file, and a script that assembles the text file back to a MIDI file.


Shows how to play a MIDI file. It uses the high level MCI API, so you can use this as a takeoff point to play WAVE files on the waveaudio device or AVI files on the digitalvideo device, etc.


A collection of scripts that demonstrate Reginald's COM/ActiveX support.


A script that displays the arguments passed to it (from whatever program was used to launch the script).


A macro for REXX Programmer Center. Lets you highlight the name of some call to a script, and will load that script into an editor window.

An example of using RxOdbc.



A REXX GUI utility to append a .REX extension on all calls to external scripts. This can be useful when converting scripts to a macro DLL, because then script names must be called with the extension.


Shows how to calculate a CRC-32 checksum for a disk file. Also checksumstr.rex does the same for a string in memory.


Gets a time from the user at which he would like this script to do something. The script then waits until that time before it does that action. Note: If using REXX GUI for your user interface, then instead use the timeout script examples below.


Backups files whose names are listed in a text file upon each drive.


Reads all the lines of a text file and joins lines that end with a comma.

You can use this example as a skeleton script to show how to parse each line of a text file, searching for some special characters on each line to break apart or join pieces of lines.