Bigbruin.com
Home :: Reviews & Articles ::
Forum :: Info :: :: Facebook :: Youtube :: RSS Feed
Search  :: Register :: Log in
"Modding With ResHacker - Guide" - READ FIRST
Post new topic   Reply to topic    Bigbruin.com Forum Index -> Software
View previous topic :: View next topic  
Author Message
advance
Rated PG


Joined: 27 Apr 2005
Posts: 6

PostPosted: Wed, 27 Apr 2005 21:03:30    Post Subject: "Modding With ResHacker - Guide" - READ FIRST Reply with quote View Single Post

Resource Hacker: Every customisers tool.

Get it here.

From site:
Quote:
Resource HackerTM is a freeware utility to view, modify, rename, add, delete and extract resources in 32bit Windows executables and resource files (*.res). It incorporates an internal resource script compiler and decompiler and works on Win95, Win98, WinME, WinNT, Win2000 and WinXP operating systems.


DISCLAIMER: Anything that you do to your computer or yourself as a result of this guide is not my problem nor my fault.

Let me start off by saying, make backups. PLEASE. It is so simple and so easy. And so not worth the pain of reformat etc is you don't.



The Menu:



File

Open: Opens a File to Hack.

Save: Saves the new hacked file.
Please note: You can not over write all files you will hack. Use an other method (see below) for other ways to replace files.

Save As: Regular save as command.

Exit: Exits the program

Overview: Basic File Commands


Edit

Select All: Selects all text.

Cut: Cut text selection command.

Copy: Copy text selection command.

Paste: Inserts copied text.

Undo: Undos last move.

Overview: Basic Edit Commands.


View

Expand Tree: Expands the tree in the resource tree. Open the 'folder' to edit whats inside.

Collapse Tree: Does the opposite of the 'Expand Tree' Command.

Find Text: The regular find control. Also accessed by hitting F3. Extremley useful for use when searching 'String Tables.'

Find Next: Just like hitting F3 again.

Editor Font: Changed the font of the text.



Action

Save Resource as Binary / (decomposed) .Res File: You got three options here, I put them into one part. The way to save them as these types of files, are to go to the specific object you want, and save it from there.

Save all Resources: A good tool when you are editing bitmap after bitmap or icon after icon. Saves everything in the tree to where ever you specify seperatley.

Please note: Save this into a SEPERATE FOLDER. You save ALL THE RESOURCES. That means if there is 1,000 icons and bitmaps in shell32.dll, there will be 1,000 icons and bitmaps in where ever you saved it.

Replace (Icon, Bitmaps, Cursors, Other Resources): This is a bigie. Without this, you couldn't do nearly as much as you can now. You can change bitmaps and icons and just about anything else in the resources with this. See diagrams:



Note: Keep the language the same as the other resources when addinf or replacing resources.

Note Two: You will get a file preview box when replacing bitmaps and icons.

Add New Resource: Same as replacing, but adding. ;l

Delete Resource: Deletes the resource. When deleting, use Alt A, then D. The first time you will have to confirm, but you will be ok the next few.

Thats all for the menu.

Moving on.

The Tree

Opce you have a resource opened, notepad for example ( I will be using notepad because it is a very easy hack )





This is what I will refer to as the resource tree.

When nothing is expanded, you see object typed. In notepad speceficly, you will notice 8 seperators. In this file we will only be touching 6 of them: Icons, the Menu, Dialogs, String tables, and icon groups.

Everything above we can edit and change with ResHacker. I will use the program notepad, located in your c:/windows/ folder, do demonstrate how.

Icons: Those dumb ugly things that are called icons, are easy to delete, and easier to replace. To replace them, simply have an icon in mind saved on your hard drive, navigate to the icon in the resource tree, and replace it in the action menu.

I replaced mine with a blank icon, it looks very sexy.

Menus: Next we have the one and only menu in Notepad, so lets get to it. There is a very basic structure to Menus in ResHacker. I will outline it to you.

Code:
[b]#[/b] MENU
LANGUAGE [b]LANGUAGE, SUBLANGUAGE[/b]
{
POPUP "[b]MENU NAME[/b]"
{
   MENUITEM "[b]Submenu item text[/b]",  [b]#[/b]
}
}


That is the move basic form of a Menu, Ill go through all the parts.

Code:
[b]#[/b] MENU


What Menu Number is it, and that its a menu. Starts the menu.

Code:
LANGUAGE [b]LANGUAGE, SUBLANGUAGE[/b]

What languages will be used, there is no real reason to edit this.

Code:
{
POPUP "[b]MENU NAME[/b]"


The title of the menu: ie: File or Edit or View etc

Code:
   MENUITEM "[b]Submenu item text[/b]",  [b]#[/b]
}


The title of the command in the menu header.
Ie:New, Open, Save, etc

Code:
}


Ends the Menu

Dialogs

While notepad doesn't have the best example for dialogs, you can still use it to play with.

I suggest using Dialog 14 in Notepad, becasue it if very simple, and uses key components.

This is the most basic dialog.
Code:

[b]#[/b] DIALOG [b]#, #, ###, ###[/b]
STYLE [b]blah[/b]
CAPTION "[b]blah[/b]"
LANGUAGE [b]LANGUAGE, SUBLANGUAGE[/b]
FONT [b]#[/b], "[b]blah[/b]"
{
   CONTROL "[b]blah[/b]", [b]####[/b],[b]blah[/b], [b]#, #, ###, ###[/b]
}


There it is, lets disect it:

Code:
[b]#[/b] DIALOG [b]#, #, ###, ###[/b]


This is somewhat like the first line of a Menu: It gives a dialog #, it shows that it is a dialog, and also, it shows the dimensions. Drag / resize the main box of a diaglog, and watch those numbers change.

Code:
STYLE [b]blah[/b]


This is more advanced, it is all the styling for the dialog. I would pretty much leave it be, I might go more into these in later guides.

Code:
CAPTION "[b]blah[/b]"

This name, or title of the dialog.

Ie: Start -> Run: Run is the caption.

Code:
LANGUAGE [b]LANGUAGE, SUBLANGUAGE[/b]


Same as Menu.

Code:
FONT [b]#[/b], "[b]blah[/b]"


Gives the dialog a font, and a size.

Code:
{
   CONTROL "[b]blah[/b]", [b]####[/b],[b]blah[/b], [b]#, #, ###, ###[/b]
}


The controls. These are what is actually in the dialog. I could spends hours typing out all about this, but I will make it simple:

There are text controls, blank controls, and button controls. Most of them fit into these catagories. The text controls are easy, you just change the title of what you see, in essence, renaming them.

"Blank controls" are the items where you put in imput, You can move these around and resize them.

"Button Controls" are the buttons, you can rename them and move them and resize them. Those can give you some cool changes and a nice look, that are all very useful.


String Tables

In my opinion, these are by far, the COOLEST thing you can edit. Hey, don't like your start button text? CHANGE IT? I'll show ya how:

When I talk about string tables, they are the lables and text of what ever your editing. For instance, if you are editing the all famous, easy hack, notepad, you can find string tables worth hacking.

For example, in notepad, if you don;t save a document, it saves it as "untitled" and you want to change it to... nothing, you would open reshacker, notepad, and go to string tables. Open up 1, and find #4. It looks like this:

Code:

4,  "Untitled"


And thats the basis of a string.

Code:

[b]#[/b], "[b]text[/b]


Edit whats in that string, keeping the " 's and you'll be fine.

Make sure you compile your changes before you save or move on to something else.

Note, you can't make the string of just "". So either put a space in there ( " " ) or if that doesn't work, do "alt +0160" between the quotes. Thats is for strings Smile



Icon Groups

Yeah, simply groups of icons. No big deal, but when deleting all icons, delete the icon groups, not the icons themselves.



Those are the parts to hack, now here is some suggested hacking material.

-easy
Notepad - c:\windows\NOTEPAD.exe (Good for practicing menus and icons and string tables)
explorer - c:\windows\EXPLORER.exe (Has everything, including bitmaps)

-harder
shell32.dll - c:\windows\system32\shell32.dll (everything, great dialogs to hack)
comdlg32 - c:\windows\system32\condlg32.dll (mostly good dialogs)

Now that you have hacked what ever you hacked, there are a few ways to go about replacing the old ones with the new ones, and I swear by a program called "Replacer."

Replacer, found here, can replace the old files with the new ones. You can't just SAVE over the old files all the time, if they are in use. So, if it is not a system file, simply exit out of the program and save over the old file, or use replacer. Replacer looks like this:




You can drag and drop the ORIGNAl file into the box, or type its path and hit enter.

Then do the same with the replacement file,



Then log off or reboot.

Remember, don't limit yourself to what you have seen here, I sure as hell haven't. Hack anything any everything your mouse touches for a better more customised workspace.

Here is a link to a guide on hacking Explorer.

-Advance
Back to top
View user's profile Send private message
Little Bruin
Boo Boo

Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket
Display posts from previous:   
Post new topic   Reply to topic    Bigbruin.com Forum Index -> Software All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Contact Us :: On Facebook :: On Youtube :: Newsletter :: RSS Feed :: FAQ :: Links :: Sponsors :: Privacy Policy
Copyright © 2000 - 2023 Bigbruin.com - All rights reserved