Topic: Needs enhancement of the Open URL at cursor menu (1 of 39), Read 109 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Sunday, July 10, 2005 01:14 AM

Hello,

To be specific let me describe two very simple experiments:

1. Suppose that my file has the line:

a href="file//C:/vedit/test.html

and that I put the cursor on the second word of this line. Then invoking the {File, File Open More, Open URL at Cursor} menu command, nothing happens.

2. Suppose that my file has the line:

a href="file// C:/vedit/test.html

and that I put the cursor on the third word of this line.
Then invoking the previous menu command, does indeed launch my browser.

I have a hunch that href is not part of the URL.
Now I would like to have an enhancement of this command that would launch href-s as well. I forgot to tell you that my browser is Netscape 7.2. In fact,I would appreciate knowing the behavior of Internet Explorer.

Thanks,

- peter.

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (2 of 39), Read 106 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Sunday, July 10, 2005 06:28 AM

Peter:

I moved your message from conference "Macro library" to "Technical
Support - Other" which is more appropriate IMHO.


On Sun, 10 Jul 2005 01:14:00 -0400, Peter Rejto wrote:

>To be specific let me describe two very simple experiments:
>
>1. Suppose that my file has the line:
>
> a href="file//C:/vedit/test.html
>
>and that I put the cursor on the second word of this line. Then
>invoking the {File, File Open More, Open URL at Cursor} menu
>command, nothing happens.

1.) The correct syntax should be file:// (with a colon)
2.) On my system there is a "CANNOT SHELL OUT" error instead. Huh?!


>I have a hunch that href is not part of the URL.

Exactly. It's HTML syntax.


>Now I would like to have an enhancement of this command that
>would launch href-s as well.

I don't think that will be easily possible.
It would be necessary to enhance the opencurs macro with a
HTML-parser. And that may be a bit too much...

But I'll have a look at it when checking the above mentioned error
message.


In the meantime:
It should be working to highlight the URL (or filename) to be opened
before invoking {File, Open More, Open URL at Cursor}.

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (3 of 39), Read 113 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Sunday, July 10, 2005 08:27 AM

On Sun, 10 Jul 2005 06:28:00 -0400, I wrote:

>2.) On my system there is a "CANNOT SHELL OUT" error instead. Huh?!

That was a local problem on my PC.
The browser configuration in the registry was wrong and so VEDIT
didn't know what to do.

I added a check and a little error message to OPENCURS.VDM to handle
that (In fact it shouldn't happen, but...).


>>Now I would like to have an enhancement of this command that
>>would launch href-s as well.
>
>I don't think that will be easily possible.
>It would be necessary to enhance the opencurs macro with a
>HTML-parser. And that may be a bit too much...

I'm still thinking that this VEDIT feature shouldn't be changed to
know everything (every HTML/XML/C/PASCAL/... syntax).
You simply should position the cursor within the URL/filename and it
will work as expected.


BTW:
Exactly that cursor positioning sometimes leads to "problems" here:
I usually use the context (right-click) menu for {Open URL at cursor}
and {Open file at cursor}.
Doing this I often (wrongly) suppose that already the right-click will
move the cursor to this mouse position and then open that file.
But in reality the cursor position isn't moved by that right click and
still points elsewhere. So the wrong file (or none(!)) is opened.

So I always have to remember: First do a left click on the filename to
position the real cursor there and then a right-click to open the
context menu.

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (4 of 39), Read 120 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Thursday, July 14, 2005 12:36 PM

The version of opencurs.vdm posted in my previous message was not
robust in all cases of a wrong browser path. So here a better one.

Christian


Edit: Attachment deleted. See later message for link.

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (8 of 39), Read 106 times
Conf: Other, General, etc.
From: Ted Green
Date: Monday, July 11, 2005 01:21 PM

At 08:29 AM 7/10/2005, you wrote:
>From: "Christian Ziemski"
>
>The version of opencurs.vdm posted in my previous message was not
>robust in all cases of a wrong browser path. So here a better one.

Christian:

Should I use this as the new opencurs.vdm in the distribution?

Ted.

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (9 of 39), Read 109 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Monday, July 11, 2005 01:32 PM

On Mon, 11 Jul 2005 13:21:00 -0400, Ted Green wrote:

>At 08:29 AM 7/10/2005, you wrote:
>>
>>The version of opencurs.vdm posted in my previous message was not
>>robust in all cases of a wrong browser path. So here a better one.
>
>Should I use this as the new opencurs.vdm in the distribution?

Ted:

The error I'm trying to catch with my fix may only occur VERY rarely,
but yes, I think it would make sense to make this new version official
(after you checked it, of course ;-)


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (11 of 39), Read 108 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Monday, July 11, 2005 01:42 PM

Ted:

Would it be possible to enhance the mouse context menu (right click
menu) to set the text cursor to the mouse position like a left click,
just before popping up the menu?

That would be more intuitive. And compatible to many other
applications too.
I described my "problem" with it two messages above.

Just a little wish...

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (14 of 39), Read 107 times
Conf: Other, General, etc.
From: Ted Green
Date: Tuesday, July 12, 2005 03:08 PM

At 01:42 PM 7/11/2005, you wrote:
>Would it be possible to enhance the mouse context menu (right click
>menu) to set the text cursor to the mouse position like a left click,
>just before popping up the menu?

Christian:

That should be a trivial change. Not all other editors do that, but Word does, and as much as many of us hate Word, it is the "standard" on how Windows programs should work.

Ted.

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (15 of 39), Read 113 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Tuesday, July 12, 2005 05:07 PM

On Tue, 12 Jul 2005 15:08:00 -0400, Ted Green wrote:

>At 01:42 PM 7/11/2005, you wrote:
>>[enhance right click menu to set the cursor to the mouse position]
>
>That should be a trivial change. Not all other editors do that, but
>Word does, and as much as many of us hate Word, it is the "standard"
>on how Windows programs should work.

Ted:

Hey, I didn't have Word in mind, really!

Many programs are setting their pointer/cursor/focus on that object
the mouse pointer is on when doing a right click.
Not only in Windows. And I'm finding that absolutely intuitive.

Perhaps it's worth an additional Config() value? ;-)
(In case some users may be irritated by that new behavior...)

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor menu (39 of 39), Read 45 times
Conf: Other, General, etc.
From: Ted Green
Date: Thursday, March 23, 2006 12:44 PM

At 02:09 PM 7/12/2005, you wrote:
>From: "Ted Green"
>
>At 01:42 PM 7/11/2005, you wrote:
>>Would it be possible to enhance the mouse context menu (right click
>>menu) to set the text cursor to the mouse position like a left click,
>>just before popping up the menu?
>
>Christian:
>
>That should be a trivial change. Not all other editors do that, but Word does, and as much as many of us hate Word, it is the "standard" on how Windows programs should work.

Just to close this thread, this was implemented in 6.15.

Ted.

 


Topic: Re: Needs enhancement of the Open URL at cursor me (7 of 39), Read 103 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Monday, July 11, 2005 12:20 PM

On 7/10/2005 8:27:08 AM, Christian Ziemski wrote:

> On my system there is a "CANNOT SHELL OUT" error instead. >Huh?!
>
>That was a local problem on my PC.
>The browser configuration in the
>registry was wrong and so VEDIT
>didn't know what to do.


Thanks Christian,

I am also getting this type of error messages. In fact, my error numbers were in the range 2 -- 87.
I tried to look up these numbers but did not succeed.

So, if you have time, I would appreciate learning about them.

is definitely, not a high priority item with me!

Thanks again, for all your help.

-peter

 


Topic: Re: Needs enhancement of the Open URL at cursor me (10 of 39), Read 98 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Monday, July 11, 2005 01:33 PM

On Mon, 11 Jul 2005 00:20:00 -0400, Peter Rejto wrote:

>On 7/10/2005 8:27:08 AM, Christian Ziemski wrote:
>
>> On my system there is a "CANNOT SHELL OUT" error instead. >Huh?!
>
>I am also getting this type of error messages.
>In fact, my error numbers were in the range 2 -- 87.
>I tried to look up these numbers but did not succeed.
>
>So, if you have time, I would appreciate learning about them.

Sorry, but I don't know anything about those numbers.

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor m (5 of 39), Read 112 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Monday, July 11, 2005 02:48 AM

On 7/10/2005 6:28:11 AM, Christian Ziemski wrote:
>Peter:
>In the meantime:
>.... highlight the
>URL (or filename) to be opened
>before invoking {File, Open More, Open
>URL at Cursor}.

Thanks Christian,

This is exactly that I was missing! I shall try the highlighting right away.

Since highlighting is so simple to do, I do not see how your
cursor macro enters the picture.

Do I understand it correctly ? The {File Open, Open More, Open URL at Cursor} command transmits a parameter the the browser. This parameter is the highlighted block, if there is one, otherwise the word containing the cursor. Cool! I shall also go back to your old context sensitive help macro, that probably you have long forgotten. Anyway, I learned it from there,that I can transmit a word containing the cursor to any executable.

Thanks again,

-peter.

 


Topic: Re: Needs enhancement of the Open URL at cursor m (6 of 39), Read 113 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Monday, July 11, 2005 06:01 AM

On 7/11/2005 2:48:29 AM, Peter Rejto wrote:
>
>This is exactly that I was missing! I
>shall try the highlighting right away.

As I wrote in another message: Usually it should work by simply setting the cursor within the URL/filename.

The OPENCURS macro then tries to do its best to find the beginning and end of the URL/filename.
If that fails you have to use highlighting (but it doesn't hurt if you do it always).
Especially spaces in filenames are a problem. This is a case where indeed you HAVE to use highlighting.

>Do I understand it correctly ? The {File
>Open, Open More, Open URL at Cursor}
>command transmits a parameter the the
>browser. This parameter is the
>highlighted block, if there is one,
>otherwise the word containing the
>cursor.

Not the "word", but the complete URL/filename, what may not be the same.


>Cool! I shall also go back to
>your old context sensitive help macro,
>that probably you have long forgotten.

I'm using it almost daily when coding VDMs and can't remember a command syntax or parameter!

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor m (12 of 39), Read 92 times
Conf: Other, General, etc.
From: Walt Pattinson
Date: Monday, July 11, 2005 07:59 PM

I was just playing around with OpenCursor since I've never used the macro yet (but boy will I start!!!) and wondered if one more addition is possible. When programming, usually a header file is surrounded by either " or <>. Any chance the macro can be made to work if the cursor is at the beginning of a header declaration? IOW, if the cursor is before the " or <, pick up the filename anyway? This would alleviate that last right-arrow. Small potatoes I realize but every little bit helps.

 


Topic: Re: Needs enhancement of the Open URL at cursor m (13 of 39), Read 96 times
Conf: Other, General, etc.
From: Pauli Lindgren
Date: Tuesday, July 12, 2005 11:38 AM

On 7/11/2005 7:59:11 PM, Walt Pattinson wrote:
> When programming,
>usually a header file is
>surrounded by either " or <>.
>Any chance the macro can be
>made to work if the cursor is
>at the beginning of a header
>declaration?

Do you mean at the beginning of the line, outside the quotes or <>?
That would require file type specific operation for the function, just as opening an URL when cursor is positioned at HREF would need. I don't think that would be worth the trouble. You can easily position the cursor inside the filename.

However, there is another enhancement I have been thinking of doing quite a while (but have been too lazy or something).
Typically, the header files are not located in the same directory as the source file. Therefore, 'Open file at cursor' does not work. So we would need to get the include path used in the project, and search all the directories mentioned in the path.

That would require that we could be able to specify the include path on project basis. At the minimum, we would need a Vedit variable to specify the project directory. Then we cold store some data file in that directory to contain other project specific settings.

--
Pauli

 


Topic: Re: Needs enhancement of the Open URL at cursor m (21 of 39), Read 92 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Thursday, July 14, 2005 01:44 AM

On 7/11/2005 6:01:12 AM, Christian Ziemski wrote:
>On 7/11/2005 2:48:29 AM, Peter Rejto
>wrote:
>>
>>This is exactly that I was missing! I
>>shall try the highlighting right away.

Christian,

I have just incorporated your "highlighting" idea into my User Menu. Specifically, I have added the command:

Open URL at cursor or at Highlighted Block. Of course, all that this command does is to invoke your OPENCURS.VDM macro.

At the same time, I hope that Ted will also make this minor
adjustment to the name of the {Open File, Open More, Open URL at cursor} menu command.

Thanks,

-peter.

 


Topic: Re: Needs enhancement of the Open URL at cursor m (25 of 39), Read 87 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Thursday, July 14, 2005 06:52 AM

On 7/14/2005 1:44:54 AM, Peter Rejto wrote:

>Specifically, I have added the command:
>
>Open URL at cursor or at Highlighted Block.
>Of course, all that this command does is to invoke your OPENCURS.VDM macro.

Hmmm, that is exactly the same as {File, Open more, Open URL at cursor}!?
And even if a filename is highlighted: the cursor still has to be on the filename too! So the current name of the menu entry "Open URL at cursor" is still meaningful!

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor m (26 of 39), Read 91 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Thursday, July 14, 2005 12:06 PM

On 7/14/2005 6:52:39 AM, Christian Ziemski wrote:
>On 7/14/2005 1:44:54 AM, Peter Rejto
>wrote:
>
>>Specifically, I have added the command:
>>
>>Open URL at cursor or at Highlighted Block.
>>Of course, all that this command does is to invoke your OPENCURS.VDM macro.
>
>Hmmm, that is exactly the same as {File,
>Open more, Open URL at cursor}!?
>And even if a filename is highlighted:
>the cursor still has to be on the
>filename too! So the current name of the
>menu entry "Open URL at cursor" is still
>meaningful!

Thanks Christian,

Oops, once again I missed a "hidden" assumption.
Specifically, that the cursor should be on the filename.

Being an absent minded mathematician, I do need an explicit reference to Highlighting. Any suggestions ?

-peter.

 


Topic: Re: Needs enhancement of the Open URL at cursor me (16 of 39), Read 91 times
Conf: Other, General, etc.
From: Fritz Heberlein
Date: Wednesday, July 13, 2005 12:55 PM

>On my system there is a "CANNOT
>SHELL OUT" error instead. Huh?!

And on mine a "browser executable not found".
Huh (twice)!?

Fritz

 


Topic: Re: Needs enhancement of the Open URL at cursor me (17 of 39), Read 92 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Wednesday, July 13, 2005 03:13 PM

On Wed, 13 Jul 2005 00:55:00 -0400, Fritz Heberlein wrote:

>And on mine a "browser executable not found".

That is the new message I added when the registry key
HKEY_CLASSES_ROOT\http\shell\open\command\
Vedit uses to find the configured browser is pointing to a not
existing file.

What does that key contain on your PC?

Perhaps we have to find another way to find the executable.

Or something is wrong in your config (like in mine).
(I'm using Opera as browser, and it seems that one of it's updates
didn't update that key...)


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (18 of 39), Read 97 times
Conf: Other, General, etc.
From: Fritz Heberlein
Date: Wednesday, July 13, 2005 03:56 PM

>>And on mine a "browser executable not found".


>
>That is the new message I added when the registry key
>HKEY_CLASSES_ROOT\http\shell\open\command\
>Vedit uses to find the configured browser is pointing to a not
>existing file.
>
>What does that key contain on your PC?
>


c:\progra~1\MOZILLA.ORG\MOZILLA\MOZILLA.EXE

Can the Dos-style abbreviation be the culprit? Should I expand it to "programme" ?

Thanks and regards,

Fritz

 


Topic: Re: Needs enhancement of the Open URL at cursor me (19 of 39), Read 102 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Wednesday, July 13, 2005 04:53 PM

On Wed, 13 Jul 2005 15:56:00 -0400, Fritz Heberlein wrote:

>>What does that key contain on your PC?
>
>c:\progra~1\MOZILLA.ORG\MOZILLA\MOZILLA.EXE
>
>Can the Dos-style abbreviation be the culprit?
>Should I expand it to "programme" ?

I tried it with such a short name, no problem here.

Does that file c:\programme\MOZILLA.ORG\MOZILLA\MOZILLA.EXE
really exist on your PC?
And Vedit only thinks it isn't there while in OPENCURS.VDM?

Did the original version of OPENCURS work for you, or is there a
"CANNOT SHELL OUT" error instead?

I'm a bit irritated.
We should continue tomorrow. It's late.


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (22 of 39), Read 97 times
Conf: Other, General, etc.
From: Fritz Heberlein
Date: Thursday, July 14, 2005 04:22 AM


>>>What does that key contain on your PC?
>>
>>c:\progra~1\MOZILLA.ORG\MOZILLA\MOZILLA.EXE
>>
>>Can the Dos-style abbreviation be the culprit?
>
>I tried it with such a short name, no problem here.
>
>Does that file c:\programme\MOZILLA.ORG\MOZILLA\MOZILLA.EXE
>really exist on your PC?
>

Hihi, i hope so. Like VEDIT, i use it on an "every day all day" basis.

>And Vedit only thinks it isn't there while in OPENCURS.VDM?
>

At least

sys("c:\programme\MOZILLA.ORG\MOZILLA\MOZILLA.EXE",max)

works fine.



>
>Did the original version of OPENCURS work for you, or is there a
>"CANNOT SHELL OUT" error instead?
>

Hm -- sorry, i was too quick in overwriting the old version with the new one.
I'l look up the original at the web board and try in again in the afternoon.

Thanks,

Fritz

 


Topic: Re: Needs enhancement of the Open URL at cursor me (28 of 39), Read 86 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Thursday, July 14, 2005 12:34 PM

On Thu, 14 Jul 2005 04:22:00 -0400, Fritz Heberlein wrote:

>Hm -- sorry, i was too quick in overwriting the old version with
>the new one.

Simply save the version to be tested into the directory "user-mac" and
let the original "macros\OPENCURS.VDM" untouched.

VEDIT first looks into "user-mac" and then into "macros" when
searching for a macro in order to run it.

So you can test a new version and if it doesn't work: just rename or
delete it in "user-mac" and VEDIT will then use the one in "macros"
again.

Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (23 of 39), Read 94 times
Conf: Other, General, etc.
From: Fritz Heberlein
Date: Thursday, July 14, 2005 04:48 AM

>Did the original version of OPENCURS
>work for you, or is there a
>"CANNOT SHELL OUT" error instead?

Christian,

I have downloaded opencurs.vdm from

http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm

The preamble says:

Last change: 24-Apr-2004 C.Z.: Fixed bug introduced 19-Apr

If this is the "original version": It works "like a charm", to quote Peter.

Fritz

 


Topic: Re: Needs enhancement of the Open URL at cursor me (24 of 39), Read 98 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Thursday, July 14, 2005 12:37 PM

On 7/14/2005 4:48:51 AM, Fritz Heberlein wrote:

>I have downloaded opencurs.vdm from
>http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm
>The preamble says:
>Last change: 24-Apr-2004 C.Z. ...
>
>If this is the "original version": It works "like a charm", to quote Peter.

That one should be at least near the original version ;-)

I don't understand why that one works and the new one from Webboard above does not.

Anyway: I made a new version now:
- Less restrictive if a missing browser executable: It now uses the fallback via "start" command in this case. No more error message.
- Fixed exactly that start command, which didn't work correctly.

I tested it with a correct registry entry and with defect entry. And at least on my PC it is working fine now.

Since I don't have writing access to my website from here, I attached the new version to this message.

Christian

Edit: Attachment deleted. See later message for link.

 


Topic: Re: Needs enhancement of the Open URL at cursor me (27 of 39), Read 94 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Thursday, July 14, 2005 12:34 PM

So, now http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm
is my current version.

To be tested on several installations (on my own two Win2000 boxes it
works) ...

Now I added some error messages (statline) (unrelated to the original
problem.)

I'll delete the other versions here in this Webboard thread.


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (29 of 39), Read 80 times
Conf: Other, General, etc.
From: Fritz Heberlein
Date: Thursday, July 14, 2005 01:37 PM

>To be tested on several installations (on my own two Win2000 boxes it
>>works) ...
>>
>>
>>

Work well for me, too (Win2000).

Thanks,

Fritz

 


Topic: Re: Needs enhancement of the Open URL at cursor me (30 of 39), Read 79 times, 1 File Attachment
Conf: Other, General, etc.
From: Peter Rejto
Date: Thursday, July 14, 2005 06:49 PM

Christian,

Your new OPENCURS.VDM works like a charm on my Home Computer,
running Netscape under Win2K.

On my Office Computer, I do get a Firefox error message. Since I am new to Firefox I stopped here.

I also took the key command on line 75 and tried to use some variations as a stand alone macro. In doing this, a learned quite a bit, however I also hit the famous CAN NOT SHELL OUT, ERROR #2 message. I just do not know why.

I shall try to upload my report. Thanks again,

-peter.

 
Detailed report on OPENCURS.VDM

 


Topic: Re: Needs enhancement of the Open URL at cursor me (31 of 39), Read 74 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Friday, July 15, 2005 02:33 AM

On 7/14/2005 6:49:26 PM, Peter Rejto wrote:
>
>Your new OPENCURS.VDM works ...
>
>I shall try to upload my report.

Peter:

Thank you for you report.
There seems to be still some work to do since the different browsers behave differently.

I'll write a message here when a new version is ready for testing.


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (32 of 39), Read 74 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Friday, July 15, 2005 04:37 AM

Peter's report and some more tests here brought up some bugs and conceptual problems with OPENCURS.

I changed some things in handling the browser command line now and fixed the bugs (at least the ones I found ;-)

The updated version is here: http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (33 of 39), Read 74 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Friday, July 15, 2005 03:17 PM

On 7/15/2005 4:37:38 AM, Christian Ziemski wrote:
>Peter's report and some more
>tests here brought up some
>bugs and conceptual problems
>with OPENCURS.
>
>I changed some things in
>handling the browser command
>line now and fixed the bugs
>(at least the ones I found ;-)
>
>The updated version is here:
>http://ziemski.privat.t-online
>.de/vedit/macros/opencurs.vdm


Thanks Christian,

I have downloaded this version and tested it on my Office Machine running Firefox under Win2k.

It runs like a charm !

-peter.


>Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (34 of 39), Read 72 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Monday, July 18, 2005 05:03 AM

On 7/15/2005 3:17:13 PM, Peter Rejto wrote:
>On 7/15/2005 4:37:38 AM, Christian Ziemski wrote:
>>
>>The updated version is here: http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm
>
>I have downloaded this version and tested it on my Office Machine running Firefox under Win2k.
>
>It runs like a charm !

Thanks for testing.


I additionally tested it under Windows 98 with Firefox yesterday. No problems.


Today I had the "chance" to test VEDIT and OPENCURS under XP too, but only as normal user.

Unfortunately I found a general problem in Windows XP (and Win2000?) when VEDIT has been installed as user and not as Administrator (not recommended, but may happen):

Then the Registry_Get_Item() command fails at least in the part "HKEY_CLASSES_ROOT\...." which is needed for evaluating the standard browser.

I'll modify OPENCURS to not give an error message then, but I can't make the Registry command run...


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (35 of 39), Read 72 times
Conf: Other, General, etc.
From: Peter Rejto
Date: Monday, July 18, 2005 02:29 PM

On 7/18/2005 5:03:03 AM, Christian Ziemski wrote:
>On 7/15/2005 3:17:13 PM, Peter Rejto
>wrote:
>>On 7/15/2005 4:37:38 AM, Christian Ziemski wrote:
>>>
>>>The updated version is here: http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm
>>
>Today I had the "chance" to test VEDIT
>and OPENCURS under XP too, but only as
>normal user.
>
>Unfortunately I found a general problem
>in Windows XP (and Win2000?) when VEDIT
>has been installed as user and not as
>Administrator (not recommended, but may
>happen):
>
>Then the Registry_Get_Item() command
>fails at least in the part
>"HKEY_CLASSES_ROOT\...." which is needed
>for evaluating the standard browser.
>
>I'll modify OPENCURS to not give an
>error message then, but I can't make the
>Registry command run...


Christian,

I forgot to tell you in my report that on my Office Machine I do not have administrative privileges. In spite of this, your macro runs like a charm! In fact, today I opened an .asp file on my Office Machine running under Win2k, and it still runs like a charm.


I also would like to give you another piece of information that may or may not be related to your user/administrator issue:

I am unable to use Fritz's YAP.VDM on my Office Machine. However, if one of our consultants signs in with administrative privileges, YAP runs like a charm.

-peter

 


Topic: Re: Needs enhancement of the Open URL at cursor me (36 of 39), Read 68 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Monday, July 18, 2005 02:55 PM

On Mon, 18 Jul 2005 14:29:00 -0400, Peter Rejto wrote:

>On 7/18/2005 5:03:03 AM, Christian Ziemski wrote:
>>
>>Unfortunately I found a general problem
>>in Windows XP (and Win2000?) when VEDIT
>>has been installed as user and not as
>>Administrator (not recommended, but may happen):
>>
>>Then the Registry_Get_Item() command fails at least in the part
>>"HKEY_CLASSES_ROOT\...." which is needed
>>for evaluating the standard browser.
>
>
>I forgot to tell you in my report that on my Office Machine I do not
>have administrative privileges.

It seems that it's not important to have admin rights when *using* it
but to have VEDIT *installed* as Admin (or better: with admin
rights!).


>I also would like to give you another piece of information that may
>or may not be related to your user/administrator issue:
>
>I am unable to use Fritz's YAP.VDM on my Office Machine. However, if
>one of our consultants signs in with administrative privileges,
>YAP runs like a charm.

I don't know YAP, but looked at it now.

Just a *very* wild guess: Perhaps the |(VEDITTEMP) directory on your
PC may not be writeable for you as normal user?

And no, I don't want to learn more about YAP and Tex!
That's your's and Fritz's! ;-)


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (37 of 39), Read 71 times
Conf: Other, General, etc.
From: Fritz Heberlein
Date: Monday, July 18, 2005 03:42 PM


>I don't know YAP, but looked at it now.
>
>Just a *very* wild guess: Perhaps the |(VEDITTEMP) directory on your
>PC may not be writeable for you as normal user?
>

YAP is a very simple macro that should run independent of administrator or "simple" user access.
In fact, under Win2k it does.

>
>And no, I don't want to learn more about YAP and Tex!
>That's your's and Fritz's! ;-)


Poor you. As soon as you have typeset your first paper with TeX, you never will touch Word again!

Fritz

"I hope to die before i have to use Microsoft Word" (Don Knuth, famous American mathematician and developer of TeX).

 


Topic: Re: Needs enhancement of the Open URL at cursor me (38 of 39), Read 73 times
Conf: Other, General, etc.
From: Christian Ziemski
Date: Monday, July 18, 2005 03:59 PM

On 7/18/2005 3:42:09 PM, Fritz Heberlein wrote:
>
>YAP is a very simple macro that should run independent of
>administrator or "simple" user access.
>In fact, under Win2k it does.

It was a wild guess, I know.
Here at home I'm running Win2k strictly as normal user. It's not always easy to do that since many programs don't run well without admin rights (or need some tweaking before they do run).
And working that way I came around several strange effects...


>>And no, I don't want to learn more about YAP and Tex!
>>That's your's and Fritz's! ;-)

>Poor you. As soon as you have typeset your first paper with
>TeX, you never will touch Word again!

I don't touch Word (at least not on my private PC)!
Apart from Windows itself I'm using non-MS software.

And I don't typeset documents, I simply write them.
So I often use - - - VEDIT for that. ;-)


Christian

 


Topic: Re: Needs enhancement of the Open URL at cursor me (20 of 39), Read 106 times
Conf: Other, General, etc.
From: Ted Green
Date: Wednesday, July 13, 2005 05:03 PM

At 03:57 PM 7/13/2005, you wrote:
>c:\progra~1\MOZILLA.ORG\MOZILLA\MOZILLA.EXE
>
>Can the Dos-style abbreviation be the culprit? Should I expand it to "programme" ?

Expanding the short pathname to the full long pathname may help. Also check that the full pathname is in double-quotes, which are absolutely necessary if the pathname contains any spaces.

I did a lot of research to determine this is the preferred registry key for finding the preferred browser.

Ted.