Codewright Editor Issues

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Maybe I'm stuck in my ways like a dinosaur, but I've always liked my Codewr
ight editor.  My latest PC would not take my previous installation of it th
ough and I had to start fresh.  But that means a lot of stuff that worked b
efore doesn't work now.  This is ver 7.5, that latest.  

I don't know exactly how Windows makes the connection when you click on a f
ile type to open it in the editor.  Back in the day there were specific opt
ions to enter on the command line which was shown in a dialog for setting t
he action on a file extension.  That dialog vanished a few generations of W
indows ago.  I have Codewright linked to the file extension, but when I dou
ble click nothing seems to happen.  If I drag the file to the Codewright wi
ndow it shows the arrow with the plus sign which seems to indicate it will  
open, but again nothing happens.  The only way to open a file seems to be t
hrough the Open File menu option.  

Anyone know how to set this so Codewright will work with Windows Explorer a
nd open files like other apps?  

Once I get this working I need to work no language settings... one step at  
a time.  

--  

  Rick C.

  - Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
Quoted text here. Click to load it

Right click on file and select Open With, set checkbox to always use with
the app you select.

Quoted text here. Click to load it




Re: Codewright Editor Issues
On Monday, January 20, 2020 at 5:16:08 PM UTC-5, Brett wrote:
Quoted text here. Click to load it
n
 a
Quoted text here. Click to load it
c
  
Quoted text here. Click to load it
er

Thanks, but that has already been done.  The Codewright icon shows up on th
e files.  Double click the file and Codewright comes to the foreground (sor
t of) but the file doesn't open.  Likewise drag and drop shows an indicator
 this should work, but the file never opens.  

--  

  Rick C.

  + Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
On Tuesday, 21 January 2020 09:57:29 UTC+11, Rick C  wrote:
Quoted text here. Click to load it
ion
  
Quoted text here. Click to load it
on a
fic
g
gn
.  
Quoted text here. Click to load it
orer
th
the files.  Double click the file and Codewright comes to the foreground (s
ort of) but the file doesn't open.  Likewise drag and drop shows an indicat
or this should work, but the file never opens.  
Quoted text here. Click to load it

File associations are contained in the registry.

You don't say which windows you are using but there are many options still  
available even up to win10:

'assoc' command
Control Panel->Default Programs->Associate a file type(...)
Settings->Apps->Default Apps->Choose default applications by file type

The last is Win 10 specific but the others also work in Win 10.

HTH
--
Cheers,
Chris.

Re: Codewright Editor Issues
On Mon, 20 Jan 2020 14:57:25 -0800 (PST), Rick C

Quoted text here. Click to load it

Did you perhaps set Codewright to run with Administrator privileges?  

Windows 8 and 10 won't allow drag and drop into an application that
has Admin privilege unless you disable user account controls.  Note
that simply turning off UAC notifications in Settings is NOT
sufficient - you need to edit the registry to disable UAC entirely.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
EnableLUA:DWORD = 0

But realize that if you do this, all users the machine (not just your
account) will lose UAC warnings about programs that are trying to
change system settings.


George

Re: Codewright Editor Issues
On Monday, January 20, 2020 at 8:37:01 PM UTC-5, George Neuner wrote:
Quoted text here. Click to load it

Thanks for the info.  I hadn't even thought about looking at that.  

It doesn't look like admin privilege is enabled.  Properties, Shortcut, Advanced, Run as Admin is not checked.  That toolbar icon is how I run the program.  


Quoted text here. Click to load it

I turned off UAC under Win7 and it healed many issues.  Win 8 and 10 seem to play much better with various programs.  I'm running Win10.  

--  

  Rick C.

  -- Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
On Mon, 20 Jan 2020 18:34:14 -0800 (PST), Rick C

Quoted text here. Click to load it

Sorry. If it's not admin privileges then I'm out of ideas.

George

Re: Codewright Editor Issues
On Tuesday, January 21, 2020 at 1:07:29 PM UTC-5, George Neuner wrote:
Quoted text here. Click to load it

That reminded me of the issue of getting a UAC prompt asking if the app sho
uld have permission to modify the computer.  I don't get that if I run it s
imply, but if I run in compatibility mode or as admin I get the UAC dialog.
  I've never figured out a way to get rid of that.  Not a big deal.  Once o
pened I tend to keep  CW up continuously.  

--  

  Rick C.

  --+ Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
On Tue, 21 Jan 2020 14:55:56 -0800 (PST), Rick C

Quoted text here. Click to load it

Hmm.

I don't know why you'd get that from a compatibility mode start but
not from a "normal" start.  CW hooks into Explorer (to monitor files
for changes) and it writes configuration in the registry unless you
changed that setting.  So if you have UAC notifications turned on, it
ought to warn UNLESS you start CW in admin mode.

Did you perhaps upgrade a Win7 machine?  Can't say I've seen this
problem particularly, but I've seen a number of odd things with Win7
upgrades that just don't happen if Win10 is installed fresh.

George

Re: Codewright Editor Issues
On Thursday, January 23, 2020 at 12:36:11 AM UTC-5, George Neuner wrote:
Quoted text here. Click to load it

I don't know what this laptop had installed originally, but I'm pretty sure
 they wiped it clean when installing Win10.  In fact, Win10 Pro, whatever t
hat is.  This model never supported Win10, so it is lacking some drivers, l
ike for the keyboard back lights.  

--  

  Rick C.

  -+- Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
On 20.01.2020 23:57, Rick C wrote:

Quoted text here. Click to load it

Try it with a file like

c:\test.txt

Maybe there is a problem with long file names or spaces in path/file name.

Re: Codewright Editor Issues
On Tuesday, January 21, 2020 at 4:43:34 AM UTC-5, Herbert Kleebauer wrote:
Quoted text here. Click to load it
but the file doesn't open.
Quoted text here. Click to load it
.

Thanks for the suggestion.  I try to keep spaced out of both directory name
s and filenames.  But I tried your suggestion and same result.  Codewright  
pops to the foreground, but the file is not opened.  It would seem the asso
ciation is made, but Codewright is not getting what it needs to open the fi
le.  

I recall from my early Windows programming days that the association is don
e by invoking the Codewright app (like a command line) with parameters tell
ing it to open the file.  There is/was a difference between basic "opening"
 the app/file and editing the file.  The editing command had to have partic
ular details to open the file.  It's all very fuzzy as I don't think I've h
ad to do this since W2K.  

Thanks for the suggestion though.  

--  

  Rick C.

  +- Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
Am 21.01.2020 um 21:15 schrieb Rick C:

Quoted text here. Click to load it

[Note: This all happens in the registry, where "keys" in a hierarchy of  
locations hold values, one of those being "(Standard)" value: ]

You don't really register a filename extension directly to an app (at  
least no any more).  You register a file type to an extension:

  location:    \HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.c
  value:        "cfile"

then you register "shell" commands to that file type:

  location:    \HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cfile\shell\open\command
  value:        C:\WATCOM\binnt\viw.exe %1

That's the command line to handle "open"ing of a file of this type. %1  
is replaced by the file to be opened.

For the vast majority of Windows users and the programs they use, the  
only commands that ever get handlers registered and used are "open" and  
"print", which have existed since all the way back in Windows 3.1.

I've encountered only one tool that actually uses the "edit" command  
instead: MKS Source Integrity, nowadays owned by PTC --- and what a  
nuisance it was to hunt down that bit of information!

Re: Codewright Editor Issues


Quoted text here. Click to load it


In this vein, Nirsoft has a free tool for editing file/program and
file/icon associations in the registry.  

https://www.nirsoft.net/utils/file_types_manager.html

The download links are far down the page: easiest to just search for
the word "download".

George

Re: Codewright Editor Issues
On Thursday, January 23, 2020 at 12:43:05 AM UTC-5, George Neuner wrote:

Quoted text here. Click to load it
  
Quoted text here. Click to load it
d
  
Quoted text here. Click to load it
  
Quoted text here. Click to load it

Seems to work well, thanks.  

--  

  Rick C.

  -++ Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
On 20/01/2020 22:09, Rick C wrote:
Quoted text here. Click to load it

I don't to sound rude, and this group is not exactly overwhelmed by
activity - but surely you'd get an answer from 30 seconds of googling?

Re: Codewright Editor Issues
On Tuesday, January 21, 2020 at 2:48:43 AM UTC-5, David Brown wrote:
Quoted text here. Click to load it

If you didn't want to sound rude, why did you?  Actually it isn't so much r
ude as just not well informed.  The info I'm looking for isn't the cut and  
dried matter that Bret and Chris offered.  

If you think you can find the solution using Google, please show me.  I tri
ed and found 80 million hits about anything remotely related, none of the f
irst few pages of hits were even close.  

I remember a teacher saying you can look up a word in the dictionary to get
 the correct spelling.  I asked how do you use the dictionary if you don't  
know how to spell the word.  Google can have the same problem where you nee
d to know how to get focused answers to find what you need and this is one  
of those times when I can't figure out how to get Google to focus.  

If this is all you have to offer, why did you even reply???  

--  

  Rick C.

  -+ Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.
Re: Codewright Editor Issues
On 21/01/2020 09:08, Rick C wrote:
Quoted text here. Click to load it

I don't believe I did sound rude - but I feared you might interpret it
that way.  Rude would have been posting a "let me google that for you"
link with the search "how to change file association in windows 10".

Yes, I know it is not entirely a simple matter.  Yes, I know MS in their
unending quest to irritate people change these things from version to
version, taking perfectly good working methods and screwing with them
until no one knows what's going on.

That is /precisely/ why googling is a better idea than asking in a
newsgroup (especially one that specialises in a very different niche -
though it does have the advantage of having smart and helpful denizens).
 A web search will get you to tutorials, web pages, etc., a let you get
right to the requirements at hand - no need for several posts back and
forth to figure out what version of Windows you are using or any other
details.  It would get you the answers you want faster.  It would get
you more details if you want them - or just a simple picture to follow
if a quick answer is all you want.  Surely that is a good thing?

Quoted text here. Click to load it

You have been around Usenet for longer than most people have used
computers.  Don't tell me you have never read a "how to ask smart
questions" FAQ.  You know that if you have already tried things -
including web searches - you write a summary with your question.  For
example, you should have started with saying that you got CodeWright to
start from clicking the file, but it wasn't opening the file itself.
And you could have given information about what /does/ work - can you
open files properly from within the application?

Quoted text here. Click to load it

Well, what did you try?

Quoted text here. Click to load it

I had this vague idea that I could help you get better help, but it
seems I was mistaken.  From a number of threads with you, I get the
impression that you sometimes prefer to rant than to solve problems -
especially if the solution involves accepting the reality that the world
has moved on in the last 20 years.  (I am not asking you to /like/ the
fact that things that were perfectly simple decades ago are now overly
complicated, when the old solutions would still do the job - I am asking
you to accept it.)

If you had been looking for an answer rather than a rant or a fight,
you'd have replied to my post with "I already googled for ..., but the
hits did not help - have you any suggestions?".


So, please take a moment and figure out what you want to do.

Do you want to vent your frustrations about modern Windows not letting
you use your old program as you like?  Or that MS won't let you use old
Windows that you were quite happy with?  If so, I think you'll find very
strong agreement from most people (including me).  Start a rant thread,
and people can share their war stories and feel a little better.

Do you want to figure out how to use your old editor on your new system?
 Then google a lot, and tell people what you have tried, what works, and
what doesn't.  And be prepared to accept that maybe it won't ever work -
that maybe you'll have to open files from within the editor instead of
drag-and-drop.  Be prepared that it might take a lot of work, trial and
error, "compatibility modes", reading manuals, etc.

Do you want to edit files to write code and do your work?  Maybe it's
time to spend an hour getting familiar with NotePad++ (or whatever) and
dropping CodeWright.  I'm sure you'll find some pros along with all the
cons.


Re: Codewright Editor Issues

Quoted text here. Click to load it

Does that mean CodeWright has an installer and you ran it successfully?

Quoted text here. Click to load it

I don't remember but OK. It seems to me there are maybe two or three
systems for the association stuff in Windows 10. For example, I use
Emacs and it has some associations that work but the command line tool
assoc isn't aware of some of those at all and for some files things work
differently from what assoc and ftype report. But maybe using these
older tools (assoc and ftype) could work for CodeWright?

Then there's the tool called FileTypesMan which I've used with some
success. It seems to give a more complete view of the situation.


Re: Codewright Editor Issues
On Tuesday, January 21, 2020 at 4:44:58 AM UTC-5, Anssi Saari wrote:
Quoted text here. Click to load it

Yes.



Thanks.  Digging around with assoc and ftype helped me figure out what was  
going on.  So I think I found the issue.  

While the association was pointing to the Codewright installed under C:\Pro
gram Files (x86) that was not the location of the Codewright I was running  
and pinned to my taskbar.  On changing that the associations seem to work n
ow and not only bring Codewright to the foreground, opens the file.  

Now I need to set up the various visual issues.  Seems the font selection d
oesn't actually result in that font being used, but something else is being
 substituted as if there are only a small number of real fonts and it selec
ts something "close".  Many of them result in very wide characters... or mo
re like wide space between characters.  Is it possible there is something p
reventing Codewright from accessing the many fonts it shows in the fonts li
st and translates everything to a small number of fonts (possibly 1)?  

http://arius.com/pictures/LucidaConsole_12pt.png

http://arius.com/pictures/LucidaConsole_14pt.png

Here's another thing I'll just mention to anyone wishing to continue the di
scussion.  Out of the box it has some goofiness with not displaying files i
n the File Open dialog box.  Running in compatibility mode fixes that, but  
now every time I run it I have to click the dialog box giving permissions f
or it to access files.  Why not before but only after setting compatibility
 mode?  

--  

  Rick C.

  ++ Get 1,000 miles of free Supercharging
We've slightly trimmed the long signature. Click to see the full one.

Site Timeline