杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2865|回复: 0

Resource Hacker v4.5.30

[复制链接]
发表于 2017-4-11 17:10:32 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x
Program Name: Resource Hacker v4.5.30
Program Type: Software Localization Tool
Developer: 海子(庞振海)
Homepage: http://angusj.com/resourcehacker/
Release Date: 27 November 2016
Interface Language: Multilingual
Platform: Windows XP, / Vista, / 7/8 / 8.1 / 10
File Size: 2.8MB

Resource Hacker has been designed to be the complete resource editing tool: compiling, viewing, decompiling and recompiling resources for both 32bit and 64bit Windows executables. Resource Hacker can open any type of Windows executable (*.exe; *.dll; *.scr; *.mui etc) so that individual resources can be added modified or deleted within these files. Resource Hacker can create and compile resource script files (*.rc), and edit resource files (*.res) too.


Compiling:
Compiling can be initiated either by passing a resource script file as a parameter on the the command line (see below), or by using Resource Hacker's text editor.
Supported compiler directives include: #DEFINE, #UNDEF, #IF, #ELIF, #ELSE, #IFDEF, #IFNDEF, #INCLUDE, and #PRAGMA.
The #INCLUDE, #IF, and #IFDEF directives can all be nested to multiple levels.
Strings within resource statements are defined between double-quote (") characters. These strings can also contain typical 'C' style backslashed 'escaped' characters  \t , \n , \\ , \" , and \000 .. \377 (octal). A double-quote within a string can be 'escaped' by preceding it with either a backslash or with another double-quote character.
Script comments are preceded either by double forward-slashes (//) or by a semi-colon (;).
Filenames in within resource statements can only be parsed as strings, so they MUST be enclosed within double-quote characters otherwise compile errors will be raised.
A complete list of Resource-Definition Statements can be found


Viewing Resources:
Once a file has been opened, most resources will be displayed as either an image (or group of images) or as decompiled text:



However, some resource types will be displayed in both its compiled form (eg dialog or popup menu) and in its decompiled text format.


Some resource types can only be displayed as a dump of raw byte data:


Using the internal editor to modify text-based resources:
Dialog, menu, string-table, message-table, accelerators and Borland form resources can all be easily edited and recompiled using the internal resource editor.


Dialog controls can be visually resized and/or moved, with any changes being reflected in the resource script automatically. Conversion between screen pixels and dialog units is done automatically. Select a control by clicking it in the displayed dialog. Alternatively, the Tab or Shift-Tab keys can be used to select next or prior controls respectively. The selected control will show resizing handles. To move a control without resizing, once the control has been selected, click and drag it to its new location. The arrow keys can also be used to move a control once it has been selected. A control can be resized by clicking and dragging one of its resizing handles. Alternatively, the arrow keys combined with the shift key can be used to resize a control.

The Dialog Editor can be opened from the popup menu which is displayed by right-clicking the preview dialog. The Control Editor can be opened from the same menu once a control has been selected.



New controls can also be added. The Control Editor supports almost all of Microsoft抯 standard and common control classes. User defined custom classes can also be added to the predefined list of classes by carefully editing the 揇ialog.def� text file which can be found in the same folder as Resource Hacker�. Toolbar buttons enable selection of the most commonly used controls. The top-left corner of the control to be added will default to the point at which the dialog was originally right-clicked.

Replacing Images:
If the resource item to be replaced is an icon, cursor, or bitmap, the source can be an *.ico, *.cur or *.bmp file respectively or selected from a *.res or another *.exe file. Select Action|Replace Icon (Cursor or Bitmap) from the menu.


Command Line Syntax:
Just about all the functionality of Resource Hacker can be accessed from the command line without having to open the Resource Hacker GUI.
Command line instructions and Resource Hacker scripts can remove the drudgery entailed with repeating Resource Hacker tasks.
Commandline instructions are a combination of switch statements followed by switch parameters as explained in the following table:Command line statements:
Switch
Parameter
-openfilename - the name of the file that is to be modified. It should be a Windows PE file (*.exe, *.dll etc) or a compiled or uncompiled resouce file (*.res or *.rc)
-savefilename - the new name of the modified or newly created file, either a modified opened file or an extracted resource
-resource    filename - contains a resource being added to the opened file.
-actionaction to be performed on the opened file
  • compile - compiles a text resource file (*.rc)
  • add - add a resource, fails if it already exists
  • addskip - add a resource, skips if it already exists
  • addoverwrite - add a resource, overwrites if it already exists
  • extract - extract a resource
  • delete - delete a resource
-maskresource mask - Type,Name,Language
commas are mandatory but each of Type, Name & Language are optional
-logFilename or CONSOLE or NUL
CONSOLE can be abbreviated to CON
Logs the details of the operation performed
If this switch is omitted, the log will be written to resourcehacker.log
-scriptfilename - contains a multi-command script, NOT a resource script for more info: -help script
-helpoptions - commandline or script (always logged to CONSOLE) other switches are ignored.

Notes:
  • Switch identifiers (except -script) may be abbreviated down to a single char (eg -res or -r).
  • Switch instructions do not have to be in any particular order.
  • File names that contain spaces must be enclosed within double quotes.


Changes since version 2.5:
4.5.30
Update: Very minor cosmetic improvements
4.5.28
Update: Major changes (and improvements) to the commandline syntax (see above)
4.4.26
Bugfix: The toolbar state wasn't being preserved between sessions
Bugfix: Minor bug decompiling some version info resources
4.3.20
Bugfixes: Numerous fixes to commandline processing
Bugfixes: Other minor fixes





Download:
http://angusj.com/resourcehacker/reshacker_setup.exe
http://angusj.com/resourcehacker/resource_hacker.zip
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-4-28 07:12 , Processed in 0.120451 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表