Unable to open TextPad program in new window

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
Bu1uHNpCkbBnyvO
Posts: 7
Joined: Sun Jul 16, 2023 3:16 pm

Unable to open TextPad program in new window

Post by Bu1uHNpCkbBnyvO »

Hi,
TextPad user since 2009 & I'm currently on v9.2.3 (64-bit) running on Microsoft Windows 10 Home.
I'm unable to open TextPad program in new window when I have a file already open.
It opens up the new file in a tab instead of what I would like which is an entirely new window.
Tried modifying TextPad settings/configuration as well as Windows Registry via Regedit.

Can someone help me out please?
Thank you in advance!

Screenshot
Screenshot
TextPad_Screenshot_16_Jul_2023.png (54.83 KiB) Viewed 5035 times
Current License v9.2.3
Current License v9.2.3
TextPad_License_16_Jul_2023.png (149.42 KiB) Viewed 5035 times

Keywords: TextPad Command Line Parameters, New Window, EOmqhN9zmsekL2F
User avatar
AmigoJack
Posts: 532
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Unable to open TextPad program in new window

Post by AmigoJack »

Bu1uHNpCkbBnyvO wrote: Sun Jul 16, 2023 3:44 pmTextPad settings/configuration
Ticked the Preferences > General > Allow multiple instances to run checkbox?
Bu1uHNpCkbBnyvO wrote: Sun Jul 16, 2023 3:44 pmWindows Registry via Regedit
Of course via regedit.exe - what else? But which values at which keys in particular? As per help (Reference Information > Command Line Parameters) the parameter -m should start a new instance, redardless of settings. You could edit the Registry by searching for TextPad.exe as part of a value and then add the parameter to that execution line. For example, you could find:

Code: Select all

HKEY_CLASSES_ROOT
   Textpad.txt
      shell
         open
            command
            - (Default)  REG_SZ  "C:\Program Files\TextPad 8\TextPad.exe" "%1"
...and then edit that value to include the parameter, such as:

Code: Select all

"C:\Program Files\TextPad 8\TextPad.exe" -m "%1"
User avatar
Bu1uHNpCkbBnyvO
Posts: 7
Joined: Sun Jul 16, 2023 3:16 pm

Re: Unable to open TextPad program in new window

Post by Bu1uHNpCkbBnyvO »

@AmigoJack thank you for the quick reply. I did try that but no luck. Never had this issues when using TextPad the past 14 years.

Any other suggestions please?

->
TextPad_Screenshot2_16_Jul_2023.png
TextPad_Screenshot2_16_Jul_2023.png (158.34 KiB) Viewed 5013 times
->
TextPad_Screenshot3_16_Jul_2023.png
TextPad_Screenshot3_16_Jul_2023.png (87.92 KiB) Viewed 5013 times
->
TextPad_Screenshot4_16_Jul_2023.png
TextPad_Screenshot4_16_Jul_2023.png (69.4 KiB) Viewed 5013 times
User avatar
AmigoJack
Posts: 532
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Unable to open TextPad program in new window

Post by AmigoJack »

You cannot edit the Registry in places without knowing if it is then executed by how you "open" a file or not. If you had "no luck" then you haven't double clicked a "json_auto_file" yet. Have a read on Windows > Desktop Technologies > Desktop Environment > Windows Shell > Registering a File Type and find out which filename extension belongs to json_auto_file to actually test it by double clicking at least 2 files of it, which should spawn 2 instances/processes of TextPad.
User avatar
Bu1uHNpCkbBnyvO
Posts: 7
Joined: Sun Jul 16, 2023 3:16 pm

Re: Unable to open TextPad program in new window

Post by Bu1uHNpCkbBnyvO »

Don't get too caught up in the "json_auto_file" please. I merely used that as an example. My text files (*.txt) are what I've been opening up in multiple windows over the past ~15 years of using TextPad in all previous releases.

My issue only happened when I upgraded to TextPad v9.2.3 recently. Yes, when I have double clicked on various extensions associated with TextPad in the past, it always spawned 2+ instances/processes of TextPad. It was working fine before.
User avatar
bbadmin
Site Admin
Posts: 878
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Unable to open TextPad program in new window

Post by bbadmin »

Please see https://forums.textpad.com/viewtopic.php?p=45504#p45504 below, for an update to this message.

By default, File Explorer is configured to open files in TextPad by sending it DDE messages. If an instance is not running, it starts one, then sends it messages to open the file. If one or more instances are already running, it sends the messages to the first one it finds.

The attached zip file contains two files which modify the registry to change this behaviour:
  • textpad-openmulti.reg - makes Explorer open files by starting a new instance of TextPad with the filename as a parameter.
  • textpad-opendde.reg - reverts to the default behaviour using DDE messages.
These are plain text files, so you can view them in TextPad to confirm that they are safe. Double click them in File Explorer to run them.

Note that when the first option is chosen and "Allow multiple instances to run" is not set and TextPad is already running, the new instance will pass the file name to the existing instance and terminate.
User avatar
Bu1uHNpCkbBnyvO
Posts: 7
Joined: Sun Jul 16, 2023 3:16 pm

Re: Unable to open TextPad program in new window

Post by Bu1uHNpCkbBnyvO »

@bbadmin thank you so much - that fixed the problem

In your textpad-regfiles.zip file, I ran textpad-openmulti.reg which updated the Windows Registry fixing my issue:

Code: Select all

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Applications\TextPad.exe\shell\open\ddeexec]
Last edited by AmigoJack on Sun Jul 23, 2023 9:08 am, edited 1 time in total.
Reason: proper file content; adding formattings
User avatar
bbadmin
Site Admin
Posts: 878
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Unable to open TextPad program in new window

Post by bbadmin »

Thanks for confirming.

Please note that TextPad's installer creates those entries in the registry, so you'll have to run textpad-openmulti.reg again, after installing a new update.
User avatar
Bu1uHNpCkbBnyvO
Posts: 7
Joined: Sun Jul 16, 2023 3:16 pm

Re: Unable to open TextPad program in new window

Post by Bu1uHNpCkbBnyvO »

Good to know. Thanks again both Moderators AmigoJack & bbadmin
User avatar
Bu1uHNpCkbBnyvO
Posts: 7
Joined: Sun Jul 16, 2023 3:16 pm

Re: Unable to open TextPad program in new window

Post by Bu1uHNpCkbBnyvO »

Hi,
The issue was resolved on 6/22 and no problem from 6/22-8/6.
This morning 8/7 the issue cropped up again.
Tried "textpad-openmulti.reg" again but failed.
Could a recent Windows push cause this functionality to break?
Last edited by AmigoJack on Wed Aug 09, 2023 10:16 pm, edited 1 time in total.
Reason: removing unnecessary full quote
User avatar
bbadmin
Site Admin
Posts: 878
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Re: Unable to open TextPad program in new window

Post by bbadmin »

TextPad's installer creates registry entries which are used by File Explorer to open files in a single instance of TextPad. This behaviour can be changed by extracting "textpad9-multi-inst.reg" from the attached zip file and double clicking it in File Explorer.

To revert to the default behaviour, do the same with "textpad9-single-inst.reg".

These files are for version 9. The zip also contains similar files for version 8.

Note that the default will be reset each time a new release of TextPad is installed.
Attachments
textpad-inst.zip
(1.63 KiB) Downloaded 280 times
User avatar
Bu1uHNpCkbBnyvO
Posts: 7
Joined: Sun Jul 16, 2023 3:16 pm

Re: Unable to open TextPad program in new window

Post by Bu1uHNpCkbBnyvO »

Thanks so much again @bbadmin. Running "textpad9-multi-inst.reg" resulted in the right behavior for the functionality I need. You're exactly right about the update as I recently upgraded to v9.3.0 (64-bit Edition)
Last edited by AmigoJack on Wed Aug 09, 2023 10:16 pm, edited 1 time in total.
Reason: removing unnecessary full quote
eskimo68
Posts: 4
Joined: Sat Aug 05, 2023 4:51 pm

Re: Unable to open TextPad program in new window

Post by eskimo68 »

Hmm, running the multiple reg for TP9 ended up with an endless loop of Just Once as the only option of two textpads.
Selecting open with and then textpad (not sure how) I actually got two instances.
image_2023-08-10_233709365.png
image_2023-08-10_233709365.png (218.18 KiB) Viewed 4739 times
But doubleclicking gives an endless loop, Always open as almost works...

Almost midnight, will look at the registry during the weekend and try to clean away whatever garbage I managed to duplicate with the reg file. Hopefully things will then work...

(and there is setupv9 above the picture in case someone wonders, really seems I've been upgrading every second version for 10+ years lol)
Post Reply