Heaventools

   English English  Deutsch Deutsch

Sample Scripts Library

Sample scriptsTo give you an idea of how this all works, we tried to cover all possible needs and made a dozen of scripts and test applications. Basically, all you have to do to use them as templates for your own scripts is replace the filenames and paths to source and destination locations.

Once installed Resorce Tuner Console, you will find the Demo folder in the directory where RTC has been installed. Within this Demo folder, there are 11 subdirectories that contain sample scripts and sample executable files.

The Complete Illustrated Guide To Using Scripts

All sample scripts are ready to run. Select one of the .BAT files located in the Demo folders to execute the sample script. The script will make changes in the test EXE file. The resulting file will be created in the directory named "Release" under the directory containing the script.

Click on the script name below to see the script source code:

SCRIPT NAME DESCRIPTION
Edit Icons
Shows how to add or replace icons in the test application.

Edit Strings
This script shows how to:
- Modify a String Table by using values from an external unicode text file.
- Modify a Message Table by using values from an external unicode text file.

Edit Manifest
This script shows how to:
- Add or replace an XML manifest.
- Replace icons in the executable with icons from an ico file which contains
more than one image.
- Add a 256x256 PNG-compressed icon (a Vista icon).
- Sort out the added icons in the right order.
- Output the changes in the Resource Tree to a log file.

Edit Version Information

Shows how to update or add the version variables to all files in a folder.


Edit Custom GIF
Shows how to modify common data types that stored as custom resources:
major graphic files (.GIF, .PNG, .JPG), sound (.WAV, .MIDI) and video (.AVI)
files, or binary files (.CAB, TYPELIB, etc):
- Add or replace a non-standard resource (GIF) from .gif file
- Add or replace a Cursor from .cur file
- Set a new ImageBase value

Edit Bitmap
Shows how to add or replace a Bitmap Image (.BMP) in the test application.

Process Folder

This script shows how to batch process the contents of a directory and
patch all the files with given file extensions (EXE, DLL, SYS, CPL) in the
source directory.

Big Test Script
This script shows how to:
- Modify a String Table by using a definition file
- Add a new String Table
- Modify a Message Table
- Update a Version Info resource
- Create a copy of the resource (Message Table) with another language
- Outputs a resource tree to a log file
- Save the entire file's resources as a resource DLL

To see the changes made to the test EXEs, we recommend using Resource Tuner GUI, a visual resource editor.

 Download Resource Tuner Console and learn how it can make you more productive.