Using ResHacker Scripts


Recommended Posts

I have made a few RH scripts and I plan on making a lot more. What they are is basicly a bunch of commands in a text file to be executed by ResHacker, so if you want to use them, here is how to do it:

For demostration, I am making a .dll file that does nothing, and we will be using a script I made on it. I am assuming you have ResHacker.

1.) Download this dll from here.

2.) Download this script to execute here.

3.) Extract them both to your ResHacker folder.

4.) If your ResHacker folder is "c:/program files/ResHacker", the you must use that to run the script.

5.) Go to start > run, and type in (if you have followed all the steps above excatly and if your ResHacker program is where I said above) "c:\program files\reshacker\reshacker.exe -abcdscript.txt"

This executes the script using the program ResHacker, the rest of the information is in the script:

This is what a basic script without information looks like:

[FILENAMES]
Exe=
SaveAs=
Log=

[COMMANDS]

What this does, is assings the file to edit, tells where to save is as, and makes a log to show what happened.

Then, under the commands part, it give it commads to follow.

Lets open the file that we had before (abcd.dll). It contains 5 random bitmaps, and 4 icon groups. If you look closer, you will notice that the bitmaps are in 2 different languages. This will show that with the right command we can delete all of them no matter what the language or number.

So lets get to it, do step number 5, and check out the result. In your ResHacker file, you will see two new files, a abcd2.dll and a abcd.log. Open abcd2.dll and compare it to abcd.dll. You will notice that two icon groups are gone, and all bitmaps were deleted. Thats how these scripts work. Here is the actual script.

//How ResHacker Scripts work by Advance
[FILENAMES]
Exe=abcd.dll
SaveAs=abcd2.dll
Log=abcd.log

[COMMANDS]
-delete bitmap ,,
-delete icongroup ,1,
-delete icongroup ,3,
//-Advance

I am working on a small website where I will put all these scripts I make, I will post here when I am done.

-Advance

Link to comment
https://www.neowin.net/forum/topic/247140-using-reshacker-scripts/
Share on other sites

  • 1 month later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • No, "a great deal" for 32GB of DDR5 is $50, not $350. I mean I see what you mean, that it's a decent price compared to what's currently available, but you really should put a disclaimer in this articles explaining that it's still multiple times more expensive than it used to be.
    • Linux 7.1 stable launch looms as Linus Torvalds releases the final release candidate by Paul Hill Linus Torvalds has just released what’s expected to be the final release candidate of Linux 7.1, rc7. The Linux founder said that this RC is not small, but smaller than recent releases, which is a good sign because he expects the stable version to drop next week if things continue on this trajectory. Linux kernels see a merge window for the first two weeks of their life, where developers add new features, then there are about seven or eight weeks of release candidates before the stable version. Typically, there are seven release candidates, but if more time is needed, then an eighth release candidate is released too. This week’s RC’s biggest area of fixes was for GPUs, with networking just behind. Torvalds said that the rest of the release was “pretty random and spread out” with some architecture fixes, driver fixes, filesystem improvements, and build fixes for more unusual configs. In terms of specific pieces of hardware receiving improvements in this update, we had more AMD Zen6 models supported and fixes for AMD SDMA 7.1 and GFX11. Hardware that got improvements includes Lenovo laptops, HONOR laptops, and MSI laptops. Here are the changelogs for those: ASoC: amd: acp: Add DMI quirk for Lenovo Yoga Pro 7 15ASH11 Input: atkbd - add DMI quirk for Lenovo Yoga Air 14 (83QK) Input: atkbd - skip deactivate for HONOR BCC-N's internal keyboard ASoC: amd: yc: Add MSI Raider A18 HX A9WJG to quirk table ASoC: amd: yc: Enable internal mic on MSI Bravo 17 C7VF When the stable Linux 7.1 is released, it will be up to distribution maintainers, such as Canonical and Red Hat, to release the update to their users via the update manager. Some versions of Linux will get it before others, and some will never get it at all. Fedora and Arch-based distros will be among the first to get it, though. If you don’t get it, the security fixes will be backported to your system’s kernel, so you won’t be at risk, but you won’t get newer hardware support, which is fine if your computer works now.
    • Ideally, the algorithm is smart enough to see the real sender ID and non-spoofed address to block it. Ideally.
  • Recent Achievements

    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
    • Dedicated
      Conjor earned a badge
      Dedicated
    • Week One Done
      Windows Guy earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      493
    2. 2
      PsYcHoKiLLa
      249
    3. 3
      Steven P.
      71
    4. 4
      ATLien_0
      68
    5. 5
      +Edouard
      68
  • Tell a friend

    Love Neowin? Tell a friend!