Copyright © 2008,2009 Homepage Rowdyruffboy
|
![]() |
|||||||
NOTE: This tutorial is divided into 2 parts: PART1 : BASIC INFORMATION Basic part contains Basic details, like viewing/replacing resources, etc.
PART1 : BASIC INFORMATION What is Resource Hacker: Resource Hacker is a Free software to edit 32-bit windows files (DLL, EXE, CPL, and many other). You can add / delete / view / rename / modify existing resources in a file using this great piece of software. Download Link: You can download Resource Hacker from here. Using Resource Hacker: When you open a file in Resource Hacker, it shows various directories in left-side pane, like: AVI and so on… These directories vary from file to file! AVI : This directory contains AVI files. Viewing Resources: You can view any resource embedded in the file. Simply expand the directory and click on the name of the resource. Resource Type Resource Type : Its indicate that the resource is an AVI/Bitmap/Menu/Cursor/Icon/String/etc. Changing the Resources: => For Icon/Cursor/Bitmap: 1.) Select the resource ( e.g. Bitmap -> 131 -> 1033 ). 3.) It’ll open a new window, click on Open file with new Icon/Cursor/Bitmap button. => For other resources like AVI: Its a little bit different. 1.) Click on Action -> Replace Other Resource…. Resource Type In type give the type of resource, e.g. if u r replacing AVI file then give the type as AVI. 5.) And finally click on Replace button. => For Menus/Strings/Dialogs: To change String/Menu/Dialog boxes, Select the desired resource, e.g., String Table -> 4 -> 1033, and make ur changes and then click on Compile Script button. It’ll compile the script and will give ERROR if something goes wrong so that u can correct the problem!
PART2 : ADVANCED INFORMATION Adding ur own Resources: Adding new Bitmaps/Icons/Cursors/AVIs: 1.) Click on Action -> Add a new Resource…. 3.) Select the desired resource and click on Open button. Adding new Menu-items: U can also add ur own Menu-items, like u can add extra menu (e.g., ur name) in Desktop Context Menu, etc. 1.) Goto desired menu, e.g., Menu -> 215 -> 1033, and add a line anywhere inside POPUP “” or something like that in following format:
Here: “ur_desired_string” is the text which will be displayed on screen. Actually u can only give MENUITEM “ur_desired_string”, 12345 and Resource Hacker will automatically add other parts. Adding Newly added Resources in Dialog Boxes: Once u hv added ur own Icons/Bitmaps/AVIs, u may want to add them in dialog box so that they can be displayed when we open some dialog box (like RUN, Progress Dialog box, etc.). 1.) Goto the desired dialog box, in which u want to add ur own resource, e.g., Dialog -> 1020 -> 1033. 3.) It’ll open a new window, where u’ll see many controls, like BITMAP, LABEL, ICON, BUTTON, SysAnimate32 (for AVIs), etc. 5.) Don’t forget to fill the Caption entry. Actually we hv to enter the resource name in Caption so that our added resource can be displayed on that place! e.g., if u hv added a Bitmap and gave it name as 401, then give 401 in Caption. PS: For AVI Control ( SysAnimate32 ), u hv to add # before the name in Caption. e.g., if the AVI name 144, then put #144 in Caption. 6.) Finally click on OK button & Compile the script. Using Scripts in Resource Hacker: We can also use Resource Hacker from Command line w/o going thru its GUI and also can automate many repeatative tasks to save our time. U can use the scripts in 2 forms: 1.) Single command 1.) Single Command: Some useful commands with their format r as follows:
Here: ExeFileName : The original file which we want to edit in Resource Hacker EX:- ResHacker.exe -addoverwrite explorer.exe, explorer1.exe, MyImage.bmp , bitmap, 143, 2.) Multiple commands To use script first u hv to create a script file in notepad and then give following command:
Here: ScriptFileName is the name of the script file which u made in notepad. Format of a script file:-
Here: EXE= is the original file location In [COMMAND] section, we give the commands which we want to execute. You can omit the LOG entry, then Resource Hacker will automatically create a LOG file named “ResHacker.log“. |
![]() |