Deutsch Deutsch  
Heaventools Home Page
Product Overview Solutions Download Support Purchase About

 

  RESOURCE TUNER CONSOLE :: ICON MANIPULATION AND REPLACING
Command-line script driven resource editor

Product Name:

Resource Tuner Console (RTC)

Version:

1.62

Release Date:

July 10, 2008   [What's New]

Requirements:

Intel Pentium with 16 MB RAM (or higher)

Platforms:

 Windows 98, ME, NT4, 2000, XP, 2003, Vista

Price:

 $199 (Single Developer License)

Trial Version
Download

 Resource Tuner Console (2.00 Mb)


OVERVIEW

SOLUTIONS:
 
    • Overview
    • Version Info
    • Replace Icons
    • Manage Strings
    • See The Changes
 

DOWNLOAD

GETTING STARTED

SAMPLE SCRIPTS

ORDER NOW

REQUEST SUPPORT

ABOUT US

Any Manipulation Of Icons Made Easy

If your build process involves replacing an icon resource with an icon from an ico file, Resource Tuner Console is the solution! It supports any manipulation of icons based on a specified criteria.

Icons are stored in .DLL and .EXE files in Icon Groups. Each Icon Group can contain multiple icon images, each with a different size and/or color depth. Common sizes include 16, 32, and 48 pixels square. Vista, the upcoming version of Microsoft Windows, includes new PNG compressed 256×256 icons. Each icon should contain three color depths to support different monitor display settings. Color depths include 32-bit (24-bit with 8-bit alpha channel), 8-bit (256 colors) and 4-bit (16 colors).

From now on, you don't have to change icons manually. Resource Tuner Console provides many ways of editing Icon entries in the IconGroups. You can specify whether to add a new icon, or replace an existing icon, or replace an existing icon only if there is an icon in the Icon Group that has the same width, height, and color depth as the icon specified, or replace an icon only with the specified Language...

Let's get started with the Icon automation.

1. Write a simple script (see below)
2. Run Resource Tuner Console
3. You are done.

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

The Script Used

The following example uses the ChangeIcon procedure with the EditMode argument set to CREATE_IF_NOT_EXIST to find an English-US (LangID 1033) IconGroup and the main application icon. If the application has no icons, then an icon specified will be added. If the application has icons, the procedure will try to find an icon with the same size and color depth as the icon in .ico file. Once found, this icon will be replaced with the icon from the file specified. Otherwise, that icon from the file will be added to the IconGroup.

SrcLng = 0 'Neutral
ResourcesProxy.ChangeIcon "", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_32x32x16.ico"

A description of the RTC script format and sample scripts can be found in the RTC Scripting Language Reference within the Resource Tuner Console package. See also: RTC Usage

The next example does the same for the IconGroup with the name COOL_ICONS specified. This example creates an XP-compatible icon set (9 in total, with the right order - 4-bit first followed by 8-bit followed by 32-bit).

SrcLng = 0 'Neutral
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_48x48x4.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_32x32x4.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_16x16x4.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_48x48x8.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_32x32x8.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_16x16x8.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_48x48x32.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_32x32x32.ico"
ResourcesProxy.ChangeIcon "COOL_ICONS", SrcLng, CREATE_IF_NOT_EXIST, REPLACE_IF_ITEM_EXISTS, "c:\icons\icon_16x16x32.ico"

 

 Download Resource Tuner Console and learn how it can make you more productive. Start tuning your applications today!


 

Download Area    How To Order    Request Support    What's New    About Us    Site Map