Really annoying - right click to open in Textpad.

General questions about using TextPad

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

Post Reply
lklawrie
Posts: 52
Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:

Really annoying - right click to open in Textpad.

Post by lklawrie »

Everytime I right click from the explorer window to open a file in Textpad, it also creates a new document (which I then have to close).

This is Textpad 6. Is there some new setting I'm missing?

Windows XP is the OS.
Linda
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

Vic
Posts: 3
Joined: Tue Apr 27, 2004 9:42 am

Right click to open in Textpad

Post by Vic »

In Preferences -> General, ensure the Context menu is checked in the section 'Put shortcuts to TextPad on:'

That ensures only the file you want opened is opened not another blank document1.

Regards,

Vic

TextPad 6 on Windows 7 64-bit
Many thanks
Vic
lklawrie
Posts: 52
Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:

Post by lklawrie »

The preferences ARE set that way -- it still opens a blank document in addition to the document I want opened.
Linda
nvj1662
Posts: 56
Joined: Thu May 17, 2007 10:02 am

Post by nvj1662 »

Odd, but I have a Windows XP3 installation that does opens the additional blank document, but a Windows 7 installation that does not. FWIW.
User avatar
ineuw
Posts: 191
Joined: Sun Mar 18, 2007 3:23 pm

Post by ineuw »

lklawrie wrote:The preferences ARE set that way -- it still opens a blank document in addition to the document I want opened.
I also have this bug. I guess we'll soon see v6.2 released.
TextPad 8.16.0 64bit in English and TextPad 9.1.0 64bit in French, on two separate Windows installations
rlgh60
Posts: 1
Joined: Wed Jun 27, 2012 1:54 am
Location: Texas

Post by rlgh60 »

Yep. Same bug after updating from 5.4 on XP SP3. It does not matter if I open 1 or multiple documents through the context menu. All open and last one is a new document.
Geo
Posts: 1
Joined: Fri Aug 24, 2012 7:36 pm
Contact:

This fixes it..

Post by Geo »

Just run ccleaner from piriform: http://www.piriform.com/ccleaner/download

go to Tools, Startup, Context Menu

You will see 2 entries for textpad. Delete the entry that has a blank entry in the "File: field, and there you go. No more annoying extra "Document" when you use the context menu.

I imagine that you could use other utils to manage this, but ccleaner is a staple proggie for me. I am an IT guy and use this tool on literally hundreds of machines with no problems whatsoever.
rneuendorff
Posts: 1
Joined: Fri Nov 16, 2012 2:39 pm

Post by rneuendorff »

I am on XP and just upgraded to 6.1.3 from 5.3.1 and I am getting the blank document when opening from the context menu, even though it is listed as one of the issues fixed with this version. I do see that Send To and Open With work as expected. I downloaded CCleaner and only have one TextPad entry in the Context Menu section, not two as the previous poster mentioned.

Any other suggestions?

[EDIT] After an uninstall and re-install, and a couple attempts of disabling and enabling Context Menu in the General Preferences tab, it is working as expected.
pwatson
Posts: 2
Joined: Tue Jan 15, 2013 3:19 pm

Post by pwatson »

This is still a problem in 6.2.2 when starting from a shell command line. Is there a fix or workaround?
pwatson
Posts: 2
Joined: Tue Jan 15, 2013 3:19 pm

Post by pwatson »

Below is a batch script that works for me.

===

@ECHO OFF
SET _VI_PARAMS=%1 %2 %3 %4 %5 %6 %7 %8 %9

SET _VI_PARAMS_COPY=%_VI_PARAMS%
SET _LENGTH=0
:Loop
IF DEFINED _VI_PARAMS_COPY (SET _VI_PARAMS_COPY=%_VI_PARAMS_COPY:~1%&SET /A _LENGTH += 1&GOTO Loop)

SETLOCAL ENABLEDELAYEDEXPANSION
FOR /L %%a in (1,1,%_LENGTH%) do if "!_VI_PARAMS:~-1!"==" " SET _VI_PARAMS=!_VI_PARAMS:~0,-1!
START "" "C:\Program Files\TextPad 6\TextPad.exe" -q %_VI_PARAMS%
SET _VI_PARAMS=
EXIT /B 0

===

NB: Remove any trailing spaces from lines. This may occur when using copy/paste from the web page.
robertcollier4
Posts: 22
Joined: Tue Jan 31, 2012 5:38 am

Post by robertcollier4 »

Try the following Registry script, should fix it. To use, paste the following into a blank text file and save the file with a .REG extension. Then right click on the .REG file and go to "Merge". You should also uncheck "Preferences > General > Put shortcuts to Textpad on > Context menu"

Code: Select all

Windows Registry Editor Version 5.00

; Removes the default ContextMenuHandler pointing to CLSID
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\TextPad]

;Re-adds ContextMenuHandler manually that invokes Textpad via DDE
[HKEY_CLASSES_ROOT\*\shell]
@="Textpad"

[HKEY_CLASSES_ROOT\*\shell\Textpad]
@="&Textpad"

[HKEY_CLASSES_ROOT\*\shell\Textpad\command]
@="\"C:\\Program Files\\TextPad 6\\TextPad.exe\" -s"

[HKEY_CLASSES_ROOT\*\shell\Textpad\ddeexec]
@="[open(\"%1\")]"

[HKEY_CLASSES_ROOT\*\shell\Textpad\ddeexec\application]
@="TextPad.6"

[HKEY_CLASSES_ROOT\*\shell\Textpad\ddeexec\topic]
@="system"
robertcollier4
Posts: 22
Joined: Tue Jan 31, 2012 5:38 am

Post by robertcollier4 »

Another reason for this happening can be for when notepad is being called with file names with spaces in it and you have Textpad set to "Replace Notepad".

To fix: Search registry for all instances of following text:
notepad.exe %1
replace with:
notepad.exe "%1"

From Textpad help page "Command Line Parameters":
- An empty, quoted filename (i.e. "") causes a new document to be created.
Post Reply