Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[ResHacker] Problem replacing Menu

Featured Replies

Hello!

I was just trying to edit the Menu in "notepad.exe". It will do very fine, if I do it manually.

But, when it comes to scripting I am not able to edit the file.

Here is what I have done:

  1. I opened the original "notepad.exe" in ResHacker
  2. Saved [ Menu : 1 : 1031 ] ... to c:\np_menu.res
  3. Edited the resfile to my needs
  4. closed ResHacker
  5. created scriptfile (see below)
  6. called Reshacker.exe -script c:\np_script.txt

np_script.txt

[FILENAMES]
Exe=c:\notepad.exe
SaveAs=c:\notepad2.exe
Log=c:\np_log.log

[COMMANDS]
-addoverwrite "c:\np_menu.res", MENU, 1, 1031

Now it took a minute and Reshacker created this logfile:

[01 Sep 2006, 15:02:20]

[FileNames]
Exe=c:\notepad.exe
SaveAs=c:\notepad2.exe
Log=c:\np_log.log

[Commands]
-addoverwrite "c:\np_menu.res", MENU, 1, 1031

Commands completed

But it does not create the edited file!

I do not know, where the Problem is.

I hope, anybody can help me.

Thanks in andvance

/PITU

i use metapad. much better than notepad. it has a toolbar, unlike xp notepad or even vista notepad.

i simply rename metapad to notepad, makecab compress, and replace installation with this one!

PITU, looking at your log shows that Reshacker didn't found the MENU 1 1031 resource in your .res file. (otherwise the log would have said "Modified: MENU, 1, 1031")

If your c:\np_menu.res file only contains the resources to update and no unecessary ones (it's likely to be the case), you can omit the restype, resname and reslang from the command. I never tested that in a script file, but it works from the commandline :

C:\>ResHacker.exe -addoverwrite notepad.exe, notepad2.exe, np_menu.res, , ,

(you may need to check the arguments order in the help file)

++

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.