Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

tiny patch for Notepad

- - - - -

  • Please log in to reply
8 replies to this topic

#1
go98

go98

    Newbie

  • Member
  • 30 posts
  • Joined 15-February 12
  • OS:none specified
  • Country: Country Flag
Maybe there are a few hardcore users here who, like me, like the original notepad. The good thing about it is that it knows its own limits and transfers control to wordpad for larger files...BUT...who needs the question "...do you want to open it in wordpad instead?", of course you want to open the file since you just clicked it!!

I count this as "bug", so to patch it you just have to hex-edit:

At address (offset) 33A5: 6A 24 (A1 B4 50 ...) (My english version of windows 98 SE is lost, so this is the address in my localized version)
change 6A 24 to EB 19

This bypasses the dialog and just opens the file in wordpad if the file is too big for notepad.

And if you want to transfer control to another more powerful application, change the text "wordpad.exe" (search hex for 77 00 6F 00 72) and a few "Wordpad" (search hex for 57 00 6F 00 72) for something else with same number of letters, or use a resource editor instead...


How to remove advertisement from MSFN

#2
Commodore

Commodore

    Newbie

  • Member
  • 32 posts
  • Joined 09-February 13
  • OS:98SE
  • Country: Country Flag
Having availability, you can get the same result using the Windows ME version of notepad. No window dialog to manage, just like your hint.

#3
DougB

DougB

    Junior

  • Member
  • Pip
  • 74 posts
  • Joined 04-September 11
  • OS:98SE
  • Country: Country Flag

Apologize if i'm hijacking this topic (and i liked Notepad as well, for it's clean, simple, fast interface/behavior).  But to me, the whole 64k/Wordpad issue just felt awfully kludgy, even with fixes.  (After all, Wordpad isn't Notepad -- it's a primitive MS Word!)  And i began to feel restircted in what i could do with Notepad -- i began wishing for a bit more functionality.  

So looking for a small, fast, general-purpose, increased-capability but not-overwhelming alternative, i found Win32pad: http://www.gena01.com/win32pad/

- Executable size: 55k (not that it matters all that much).  
- All Notepad menu items & shortcut keys (a few in different places).  
- Additional features/functions (including "Redo").  
- Appearance very similar to Notepad (can be customized).  
- No 64k filesize limit (filesize limit is available memory).  

- Freeware. 
- Download as .exe installer or .zip archive.  

Note: Requires a few dependency .dlls (available on download page) if not already on your system.  

If desired, rename "Win32pad.exe" to "Notepad.exe" and copy to Windows\ folder like i did. :)

Edit: Also copy "win32pad.hlp" and "win32pad.cnt" to the Windows\Help\ folder -- no need to rename these files. 

I've never looked back....  

- Doug B.


Edited by DougB, 20 January 2014 - 12:57 AM.


#4
CharlesF

CharlesF

    Advanced Member

  • Member
  • PipPipPip
  • 476 posts
  • Joined 13-July 08
  • OS:98SE
  • Country: Country Flag

If you want definitely to keep the original Notepad, Commodore is right: Millenium Notepad is better.

 

But you will find several beneficial replacement with a lot more of features, than you will be able to run by simply renaming them as "notepad.exe"

I'm using for years the incredible metapad (190 KB) [http://liquidninja.com/metapad].

BTW, it has been updated, and the new 3.6 version is running fine in Win9x



#5
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,380 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

Thanks for the heads up, Charles, didn't know there was an update although it's a couple years old. Source code is available too and I see an attempt at making it Unicode-aware. Unfortunately I couldn't modify it to create a Unicode RichEdit control although I have built a similar application myself in AutoHotkey which can even load a RichEdit50W control if available in 9x.

 

Anyway, I've been using Metapad as main editor (renamed as Notepad) for as long as I know, even in XP. Hopefully the new UTF-8 capability will alow correct file conversion, which I was missing.



#6
CharlesF

CharlesF

    Advanced Member

  • Member
  • PipPipPip
  • 476 posts
  • Joined 13-July 08
  • OS:98SE
  • Country: Country Flag

Hi Drugwash,

 

I'm afraid it's not that simple.

 

In my tests, even this new metapad is unable to decode/encode in UTF-8!

What I have found is that he's only reading or adding the "" header at the beginning of the file to tell that it is UTF-8, but no more.

The previous 3.5 version was not recognizing it and even overwriting it when saving the file.

FWIW

 

Portability was also added, that can be great on a usb key,

but the metapad.ini file generated by the metapad.exe /m command used to migrate all registry settings needs to be completed manually...

 

It remains the new high resolution icons...  :whistle:



#7
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,380 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

Yes, I've noticed certain settings are not ported over when migrating to ini, especially the WordWrap option. I may look into that sometime but considering my very bad memory, don't hold your breath. :blushing:

 

I haven't yet tested the UTF-8 capability. Since it's been a patch from someone esle - as noted on Alex's blog - it may well be incomplete. I'm so angry on myself for not having learned C/C++ in due time, otherwise it would've been so easy to fix/improve a lot of code offered freely by the good people. But I'll try, maybe even contact Alex for some tips.

 

In the mean time I've managed to build metapad in VC6 but it needs extensive testing to make sure it works correctly. The new icon is a major pain because VC6 won't recognize it so I had to rename the original, delete a few images, save it, compile with the modified icon and then replace it in ResHacker (newer version, because the older one would bail out). The manifest needs to be added afterwards too in ResHacker.

 

(edited for typo)


Edited by Drugwash, 03 February 2014 - 03:43 PM.


#8
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,439 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag

Another gem

 

https://web.archive....ee.org/rogsoft/


Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#9
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,380 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

After reading the 'Problems & Limitations' page I'm gonna stick to Metapad. ;)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users