Stickies
Technical Support >> Display issues >> Hyperlinks not copyable / usable
http://tomrevell.conforums.com/index.cgi?board=display&action=display&num=1516379027

Hyperlinks not copyable / usable
Post by LadyLike on Jan 19th, 2018, 10:23am

I usually have one sticky ready on the screen with all shortcuts to different website pages for quick reference.

I create it by simply typing the page name (usually two words),
I highlight the name,
I right-click to add the hyperlink,
And that's it.

I used to be able to later right-click on the names and get 'Copy Hyperlink' in the menu so I could quickly copy and send it to someone. But this no longer works. Instead I get 'Insert Hyperlink' again. The words are links alright, they are even underlined.
But if I click on them nothing happens either.

So I think something happened that disabled the functionality. But whathuh

I am very puzzled. This worked for years!

Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 19th, 2018, 11:07am

I set up some hyperlinks to try to get to the bottom of the issue you're reporting. It's very strange. Sometimes when I right-click the hyperlink, I only see the option "Insert link..." and other times after right-clicking I'll see the option "Copy link address". The position of my cursor seems to influence which option appears. Seems like a bug to me. undecided

Anyway! Without fail, after I click-and-drag to highlight the hyperlink, and then right-click the highlighted link, I always see the option "Copy link address". So try highlighting first.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 19th, 2018, 11:20am

Dear Cynthia.
I have immediately tried your tip! Eager to get this to work
But... it does not work for me rolleyes

It keeps only suggesting I add a hyperlink, as if there were no link present at all. I attach a screenshot. Oh I can't seem to add an image?
Let's see.

Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 19th, 2018, 11:35am

Let's see. You're saying that you can no longer copy link addresses. Are you also saying that your hyperlinks no longer work at all? If you double-click a hyperlink, it no longer takes you to the web page. Is that correct?

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 19th, 2018, 11:52am

Dear Cynthia.
Thank you!
No, I *do* have links, which work, but it appears as if Stickies thinks they are not links. Which is what explains why I keep getting only 'Add hyperlink' and not, as was always the case 'Copy hyperlink'.

I am sorry if I was not clear smiley
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 19th, 2018, 12:19pm

Well, it's good that they work. Because otherwise it takes Tom's magic dust to get them working.

So highlighting the link first doesn't do the trick for you. I found another way that is always working for me here. First I left-click the hyperlink one time, then I right-click it. When I use this sequence I always get the right-click menu option to "Copy link address". Does this work for you also?

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 19th, 2018, 12:47pm

Yes it is good that they work!
But the second tip doesn't help either.
I ended up trying to 'Ctrl-click', 'Shift-click' and more to get the menu but nothing works. This is driving me nuts hahaha! The links are currently utterly useless. I can double-click and then copy the link address from the browser's address bar but well, that's not what I am used to, I am used to the convenience of the perfectly tweaked sticky cheesy
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 19th, 2018, 12:56pm

Sorry nothing is working so far. Perhaps I should have suggested this immediately. I would exit Stickies and then restart her. Perhaps also try restarting your computer.

Not to worry. Most problems are sorted out here. If I had to give a percentage, I'd say between 90 and 95 percent of issues are sorted out here at the forum or through emails exchanged with Tom Revell. I wouldn't be surprised if you get your perfectly tweaked stickies back posthaste.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 19th, 2018, 1:05pm

Stickies is a womanhuh cheesy cheesy cheesy
Anyway, I tried quitting Stickies and restarting computer but these do not help either.
I think we need fairy dust now smiley
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 19th, 2018, 1:11pm

I didn't realize until today that Stickies is indeed female. Not a woman, just female. I'm not saying everyone sees it that way! grin
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 19th, 2018, 1:16pm

I am almost spraying snot now hahahahaha! cheesy
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 19th, 2018, 1:32pm

"Spraying snot" ... Sounds like something from the Upside Down in Stranger Things, and that's definitely NOT very LadyLike. smiley

I wonder whether the issue you're seeing might be related to the updates we've been getting to protect us from Spectre and Meltdown. Just musing why that right-click option suddenly quit working on your machine.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 19th, 2018, 1:47pm

Well I chose my screen name with care cheesy

Yes, it is odd. I don't understand it. The option to copy the hyperlink, along with the nice icon, has simply disappeared from the menu. I simply get the neutral list with the suggestion to create a hyperlink, which I already did!
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 19th, 2018, 5:35pm

LadyLike, one final suggestion you may not have tried yet: Perhaps there is something about that one sticky with all of your shortcuts that has gone awry. I have experienced notes which have become corrupted in one way or another.

To test my theory, create a brand new note. Establish a hyperlink in that note and check to see whether the "Copy link address" option is present.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 20th, 2018, 10:28am

Dear Cynthia.
I had already created a new sticky from scratch. I thought something might have corrupted the first one but well, the second one was just as difficult.
But I have more news.

I have a new sticky with links.
If I right-click on a link I don't have the option 'Copy hyperlink'.
I highlighted and then DID have the right-click menu option 'Copy hyperlink'.
I then double-clicked on another link and was taken to the correct page.
But after that not even highlighting a link would get 'Copy hyperlink' back into the menu.

It is as if once I 'use' a link, it's been all used up whahahahahahaha! Sorry but this is so strange!
I went into the firewall settings but Stickies was completely allowed. So that was okay.
There are no system settings I can think of that might have to do with this. I even tried a different mouse.
So there may indeed be a bug present. I hope Tom can jump in and do his magic here smiley
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 20th, 2018, 11:03am

Just another little thing: the hyperlinked text makes the cursor very jittery. I noticed that before but well, didn't think of mentioning it.
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 20th, 2018, 11:07am

I just added a tiny extra but this is not visible so I try again.
I noticed that the 'hyperlinked text' also makes the cursor very jittery, it does not stay in place as nicely as above non-hyperlinked text. I don't know if it has to do with anything but well. I didn't think of mentioning it before.

Ah... a new page had been created. Sorry, missed that, shame on me.
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 20th, 2018, 11:10am

I am so out of ideas. Well, make sure you're using the most up to date Stickies, and here's a link to the download; http://www.zhornsoftware.co.uk/stickies/download.html
In fact, reinstalling Stickies is a GOOD idea to try. Try that!

"it's been all used up whahahahahahaha!" - right, what you're seeing is pretty strange. I cannot think of anything else which might help. And I'm uncertain how much control Tom has over the code governing hyperlinks.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 20th, 2018, 11:29am

Well, thank you Cynthia, since you're the only one with ideas all my thanks go to you and you have a lot of them smiley
I will reinstall indeed. This is the first time I ever encountered this and I am at a loss. Years and years ago there was 'something strange' and Tom solved it. I hope the reinstall will work.
On the Windows7 machine it all works fine. I am considering exporting the sticky to use it on this machine, if this is possible of course. I never looked into it but maybe it can be done. I could even try the code itself, if I remember correctly there was an option to see the code.

But first things first: a reinstall.
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 20th, 2018, 11:53am

I just did an uninstall.
I shut down the machine (not restart).
I fired up the machine again.
Installed Stickies through the link you provided.
And created a stickie with a link in it.
Alas... The option to copy the hyperlink is not in the right-click menu if I right-click or highlight-right-click on the link.

Now I am getting a bit less optimistic about resolving this rolleyes embarassed
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 23rd, 2018, 07:14am

Dear forum.
I have exported the correct sticky from the Windows7 workstation and placed it on the Windows10 laptop's desktop.
The links that worked perfectly on the workstation in Windows7 do, when right-clicked, not give me the 'copy hyperlink' option on this laptop.
I am getting a bit frustrated sad
Maybe it's a Windows10 thing? The thing is though I will soon have to move to a Windows10 environment workstation. I have been using Stickies for ages and not just for quick access to links but for reminders and more. I really like Stickies and even promote it. But I can't use the links option anymore and this is a big issue to me.
Can someone shed light on this matter?
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 23rd, 2018, 12:20pm

As I recall, the only issue you're seeing is this: When you right-click a hyperlink in a stickie, you don't see the option "copy link address".

Hopefully it will work flawlessly on the Windows 10 workstation you will soon be using. I'm assuming (though maybe not!) that others using Windows 10 have read this thread, tried out the right-click option, and have not encountered the issue you're experiencing.

Btw - I just tried a regular "copy" of a hyperlink and pasted it into my Windows 7 WordPad. The hyperlink was preserved. Assuming you have apps which would preserve hyperlinks set up in Stickies, perhaps that would be of help?

Probably a naive suggestion, but perhaps you could try a different browser.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 23rd, 2018, 12:32pm

Dear Cynthia, thank you.
As a web developer I am using multiple browsers, one as the default and this can be one of choice. I have been using FF and Opera as defaults over the last years. But this does not affect the option on this W10 laptop.
The copying of the hyperlinking text works just fine. But it's the full link that I want. As I showed in the screenshot I am using the names of pages and those are made interactive. Pasting all the long links in the Sticky would make it too crowded and not easy to find the link I am looking for since it would result in a big file with the names of the pages with the long links underneath. I might then just as well use Word or even Notepad to place all the links. What I liked about Stickies was the option to simply use the name of the page and then make that interactive. People I send the information to have to be able to see the link address smiley
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 23rd, 2018, 6:38pm

Via Google, I see that there have been hyperlink issues on Windows 10 computers. Just noticed this today.

A small suggestion. Try it on a different Windows 10 computer. If it works on a different computer running Windows 10, then the issue you're seeing becomes even more intractable; it becomes something, I'm sorry to say, you will probably have to live with on that particular laptop, or else find some other software which satisfies your needs. smiley

When I was busy making skins for Stickies, I had a pesky reputation for being a bug finder. (Discovering bugs is a natural consequence of making skins, and I was rarely shy about letting Tom know about them.) But I've encountered problems in Stickies which could not be quickly sorted out. Right now, luckily, I don't see any annoying problems.

Cynthia
Re: Hyperlinks not copyable / usable
Post by eef on Jan 24th, 2018, 02:13am

I tried it on "win10 PRO" both stickies versions v9 and v8 ,while in winXP i have the menu option to copy "link adress" it does not show in win10 for both versions.

Strange it does not show , i would expect it to show but maybe not working.It seems to be a win10 problem ( one of many ) undecided

When you copy the link all info is on the clipboard ( you can paste it in another sticky as a"friendly" link) so in the worst case it is not difficult to parse the data to get the link but i am sure Tom Revell will find a workaround to get the option back smiley




Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 24th, 2018, 09:01am

Hi Eef.
This is very useful. I didn't find this myself and thought it could only be due to some weird bug on either the Stickies or Windows10 side. I hope they can resolve it. I have been using computers for a long time, doing lots of stuff for clients to resolve problems and most tricks that were suggested were among the first things I tried. I jumped through quite some hoops before I finally decided to write smiley I am so used to solving my own problems!
But well, let's hope this is something that will be fixed soon. It is strange that I saw the 'Copy hyper link' option once and then it disappeared. It's as if for some reason it is removed from the pop-up menu, could be because the link is not recognized anymore when you right-click.
In any case: I will keep using Stickies (loyal fan) and keep promoting it. I also thought, maybe a different skin would not have this problem. I don't use skins but it could be interesting to see if this helped. It would suprise me but oh well! cheesy
Re: Hyperlinks not copyable / usable
Post by Tom Revell on Jan 25th, 2018, 12:20pm

Hi there,

Sorry for the delay, I've been away.

The way that "copy hyperlink" gets on there is a bit of a hack I'm sorry to day, as it was the best I could do with the rich edit control. What you really want of course is a way to edit the hyperlink, but shhh, no-one ask for that, and we'll all pretend it's OK that's missing...

There's a flag as you move the mouse around a sticky which controls whether the mouse is currently over a hyperlink. Whenever the mouse moves, it gets set to either true or false.

Then when you right-click, if the value is true, then the menu item gets added. Another thing which depends on that value is the tooltip which appears when you move the mouse over a hyperlink. Does that appear when you hover over a hyperlink please?

Do you know whether this changed around the same time that any updates were applied to your system?

Is the text of the sticky at all private? Could you save it as an RTF file (which will contain the hyperlinks) and send it to me, so that I could try it here?

Thanks,

Tom
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 25th, 2018, 2:08pm

Dear Tom.

Thank you for your reply! And it can be good to go away, so that's fine of course!

I thought it was something way back deep in the code, yes, since the simple workarounds did not work and because initially I did have the menu, but only once, as if something got unregistered.
Now it's getting interesting cheesy
I understand how it works, so it's a true/false thing that for some reason goes all haywire and does not see the links.

You ask if I see a tooltip when I hover above a link.
And that is what I meant when I wrote things got jittery over a link. The tool tip appears but ever so briefly after which the cursor will get jittery and jumpy. It flickers. Every once in a while the tooltip reappears but only for less than a second and it usually does not come back.

The behaviour of the sticky did not change after an update or actually, I freshly installed Stickies on this Windows10 laptop. It didn't have Stickies on it before. I could check on the Windows7 workstation but I am scared of losing the functionality cheesy

I look forward to getting this solved and will do all I can to help of course, I really appreciate you're taking this seriously. So let me know if I can help.
There is nothing private in the sticky, only a few links to web pages which are made with the title of the page, turned into a hyperlink.

What I usually do is right-click to copy the path since some clients need to see the full path.
In other cases I simply copy the text to paste the name of the page which will be hyperlinked.
So I need to be able to:
1. Copy the hyperlink itself or
2. Copy the hyperlinked text

I will send you the file.
As a reminder: the sticky works just fine on the Windows7 machine. But not on this Windows10 laptop. It is the same stickie I used on the workstation, I simply imported it to this laptop thinking there might have been some corruption in the stickies I created on the laptop.

I hope this is all clear. Let me know.
And let me know where I can send the stickies, I know you are very busy and receive a lot of email. You can use the email adress that is in my profile to send me an email with instructions if you like, then I can send it. I assume you don't want to reveal any 'use this trick to bypass my email filters tip' on the forum cheesy

Re: Hyperlinks not copyable / usable
Post by eef on Jan 25th, 2018, 2:34pm

I tested it again on a win10 system and found that if you get the tooltip
you can get the menu option but it is very difficult to get the tooltip it is jittery see gif:

https://www.dropbox.com/s/p3hkmo6lk4dmytg/grabpage.gif?dl=1

It seems you cannot embed images anymore on this forum even normal png ?

Greetings,
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 25th, 2018, 2:46pm

I tried to embed the screenshot earlier too grin But it didn't work.
And yes indeed, that's what I mean: the cursor is very jittery. I wonder if it's to do with motion, I mean my hand is not always that stable.
So I attached a different mouse.
I didn't get the menu item. If I highlighted the text and right-clicked I did get the menu item ONCE. But not the second time. Nor the third, fourth, fifth... And so on. The cursor would be jittery again.
It seems pretty erratic cheesy
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 25th, 2018, 4:00pm

User Image

Voila,
Cynthia

Image courtesy of Graphics Mouse at FreeDigitalPhotos.net
Re: Hyperlinks not copyable / usable
Post by eef on Jan 25th, 2018, 11:13pm

https://i.imgur.com/n3oQMe8.png" alt="User Image" border="0">

Cynthia ,same image ( copied image from this page and uploaded to imgur again)

It seems when the link is from a secure site https:// is does not work undecided

update : just removing the "s" and it is displayed rolleyes

Thank you Cynthia for pointing the search for a solution in the right direction .Imgur also provides for a "linked" BBCode that contains the https:// and the http:// for the image.


Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 26th, 2018, 09:18am

LadyLike, Iíve not lost sight of what this thread is really about - getting back the right-click option to copy a linkís address.

eef: Iíve pointed the search for a solution in the right direction?? Forgive my naivety, but how is that not a solution for code useful for putting images here at the forum? I donít understand its flaw.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 26th, 2018, 11:09am

Cynthia:
Indeed, there was a sudden image issue subtopic so I didn't reply in an effort to keep things organized.
If we can agree to get back to the original topic this would be much appreciated laugh
So yes, the right-click issue which Tom is, as I understand it, working on. Tom can you let me know where and how I can send the RTF file I saved from the sticky?
Re: Hyperlinks not copyable / usable
Post by eef on Jan 26th, 2018, 11:13am

My bad for the confusing sentence.You pointed to the flaw that prevented me from uploading images to this forum.I had done it many times but it did not work anymore.

You showed an image with the BBCode you used also using Imgur and it worked!

The difference is the link protocol your image is http://i.imgur.com/H6h1bpG.png but the link i get from imgur is https://i.imgur.com/FfYeUd0.png and while this link works on other forums it does not on conforums.com huh

That is why i said you pointed me in the right direction your link is a http:// while the link i have is a secure https:// link the data is encrypted.

Imgur seems to provide both versions and with the same image link except for the protocol , i could just remove the "s" but still have a valid link.

This is the return info from Imgur after uploading it:
User Image

Best regards,


Re: Hyperlinks not copyable / usable
Post by Tom Revell on Jan 26th, 2018, 3:50pm

I did just send you an email ... but perhaps I don't need that sample RTF anyway...

I opened up the source, and remembered that I'd already changed the way that the link displays to make it more reliable. While I was just there, I went back to look again at one of the problems I wasn't able to solve at the time - that of editing a friendly name link.

I had success, so please try this build:

http://www.zhornsoftware.co.uk/stickies/stickiesPlus.zip

Not only should it show the tooltip more reliably, but it should also let you right-click the link and get the Copy Link Address menu item ... and on top of that, choosing that menu item will actually let you edit the link (or copy it). I'll need to tidy that up for when this gets released, but for now, could you let me know how you get on with the above please?

Tom
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 26th, 2018, 3:55pm

eef, I tinkered with it until I got something that worked! smiley
Not very scientific, I know.
I can confirm that the way I used to insert images through Imgur changed a few months ago.

Consider " https:// " contained in the link at Imgur. So the letter "s" means the data is encrypted? That's always preferable if possible. I certainly require it when I visit a financial institution's website for example. As you can see, I am nearly totally illiterate with respect to this.

Thanks for writing back!

LadyLike,
FYI, not that you need it now, but I believe that the RTF file for each sticky is found in the folder called "rtf" contained in the Stickies data folder. The RTF files are named by their unique ID number. To determine the ID number of a particular sticky, right-click the sticky's title bar and choose properties at the bottom of the menu; you'll see ID among a bunch of other properties of that sticky.

Cynthia
Re: Hyperlinks not copyable / usable
Post by Tom Revell on Jan 27th, 2018, 10:49am

You can also save any text note as RTF by pressing control-s, and changing the type to be RTF, which might be a little easier than grabbing the file from disk, although the end result will be the same.

In any case, LadyLike has sent me the file now ... although do let me know about that debug build please LadyLike.

Tom
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 27th, 2018, 11:08am

Victory!!!
It works!!!
I just replaced stickies.exe by the one you sent.
I first renamed stickies.exe to 'stickies.exerrr' and then placed your build into the folder. And it works!
I will now try to create a sticky with lots of links in it smiley
Oh and yes I did use 'Ctr-s' to save as .rtf smiley
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 27th, 2018, 11:17am

Tom: I have just added a few more links.
If I right-click on the link it has the option to copy the hyperlink address. YEAH!!!
I am so happy. I knew something was weird as the cursor was so jittery and the item disappeared from the menu but well, you never know right, it might have been WIndows10 weirdness. Thankfully all is resolved.

GOOD JOB!!! laugh laugh laugh
Thank you very much Tom!
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 27th, 2018, 11:25am

Dear Tom.
I now actually chose 'Copy Link Address' but it gave me the 'Insert Link' window instead of simply copying it to the clipboard. I tried a few times but that's all that happens. I can't copy it to the clipboard and instead, have to reselect the entire link to copy it, then close the window...
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 27th, 2018, 11:56am

I also tried the new build. The menu link "Copy link address" shows up more faithfully (although the cursor pointing at a link now has the amphetamine jitters). But when I click on copy link address, something unexpected happens.

When I inserted the link, I gave it the friendly name, "WaPo" with address being https://www.washingtonpost.com. As expected, a link was created with the name WaPo. But when I choose the menu item "copy link address", the Insert Link dialogue appears with -

Name
WaPoHYPERLINK "https://www.washingtonpost.com" WaPo

Address
https:///www.washingtonpost.com

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 27th, 2018, 12:05pm

Yes, this is what I wrote.
The 'Edit Hyperlink' window appears instead of the link being copied to the clipboard.
The jitters have been discussed before too smiley
Re: Hyperlinks not copyable / usable
Post by Tom Revell on Jan 30th, 2018, 4:12pm

LadyLike: check back when I posted the link, that behaviour is to be expected smiley For now I needed to know whether the updated exe works to fix the missing menu item problem, which it does seem to. I don't need the RTF from you now thanks, it's not relevant to this issue.

I can put the debug code back so that it just copies the link again, but I'd like to do some troubleshooting of the new functionality first, with:

Cynthia: doing what you describe works for me, which is typical. Could you send me the RTF through please, or post it here, and I'll see whether it's different for me. In case you wanted to try the test, this is what a simple text sticky looks like under the hood - this is the RTF from a note with a WaPo link in it:

Quote:
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang2057{\fonttbl{\f0\fswiss\fprq2\fcharset0 Segoe UI;}}
{\colortbl ;\red0\green0\blue0;\red0\green0\blue255;\red0\green102\blue204;}
{\*\generator Riched20 10.0.16299}\viewkind4\uc1
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200
\tx7920\tx8640\tx9360\tx10080\tx10800\tx11520\tx12240\tx12960\tx13680
\tx14400\tx15120\tx15840\tx16560\tx17280\tx18000\tx18720
\tx19440\tx20160\tx20880\tx21600\tx22320\tx23040
{\cf1\f0\fs20{\field{\*\fldinst{HYPERLINK "https://www.washingtonpost.com" }}{\fldrslt{\ul\cf2\cf3\ul WaPo}}}}\f0\fs20\par
}


You can see that the code isn't pulling the right part of the link from the encoded RTF, which is a shame, and that's why I used a MS library to do that work as I hoped they'd have got it right smiley

Tom
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 30th, 2018, 6:38pm

I see the code, Tom, thank you.
And yes I read what you wrote but I simply assumed it would now be different, that the new build would fix it smiley

I am happy to see Cynthia too has the jittery stickies, the more the better since it hopefully will help finding the solution.

I am very curious about the solution, clearly something is strange.
I don't know this code, if it were CSS I would think something is closed too often cheesy so I am so sorry I can't be of help here! But I would like to be, so let me know what I can do, I would be glad to help.

Good to know there were no errors in my sticky!
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 31st, 2018, 12:33pm

My favorite pastime is running wild and crazy troubleshooting trials for Stickies, but my OS is Win7pro. The option "copy link address" already works pretty well - after a fashion - without the new build on my 7pro computer, whereas it is missing almost always from Win 10 (according to eef and LadyLike).

Using the build, here's the RTF containing several links; one takes you to a Code Project article about hyperlinks (not to say that would be of any interest to you).

Quote:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Tahoma;}}

{\colortbl ;\red0\green0\blue0;\red0\green0\blue255;\red0\green102\blue204;}

{\*\generator Msftedit 5.41.21.2512;}\viewkind4\uc1\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480
\tx7200\tx7920\tx8640\tx9360\tx10080\tx10800\tx11520\tx12240\tx12960\tx13680\tx14400\tx15120\tx15840
\tx16560\tx17280\tx18000\tx18720\tx19440\tx20160\tx20880\tx21600\tx22320\tx23040\cf1\f0\fs24{\field{\*\fldinst{HYPERLINK "https://www.washingtonpost.com" }}{\fldrslt{\cf3\ul WaPo}}}\cf1\ulnone\f0\fs24\par

\par

{\field{\*\fldinst{HYPERLINK "https://www.codeproject.com/Articles/9196/Links-with-arbitrary-text-in-a-RichTextBox" }}{\fldrslt{\cf3\ul Code Project Article}}}\cf1\ulnone\f0\fs24\par

\par

{\field{\*\fldinst{HYPERLINK "https://www.needtoimpeach.com" }}{\fldrslt{\cf3\ul The "president"}}}\cf1\ulnone\f0\fs24\par

}


OK, I'm guessing that clicking on the link in the RTF should open Washington Post when it's working correctly. The right quotation mark is included as part of the link. Uh, that's not correct, right? Is that a clue that the code isn't pulling the right part of the link from the encoded RTF? Of course, I don't know jackshite about the lovely code under the hood of Stickies, but the moments when you share code are very special indeed.

A few notes while using the new build on my 7pro:
1. As long as attention is somewhere on the sticky, the tooltip always shows the web address as I glide the mouse over the hyperlink.
2. As long as attention is somewhere on the sticky, the option to copy the link's address shows up no matter where along the hyperlink I point and right-click. This is a dramatic improvement over what I had before.
3. When I click the option "copy link address", the insert link dialogue comes up with -
Name
WaPo
Address
https://www.washingtonpost.com
I don't know why I got a different result for the name when I tried this earlier (as I reported in my previous post). [Edit: Before I must have clicked on the copy link address menu item twice in succession; that would explain the name I got before.]

Next experiment?

Cynthia
Re: Hyperlinks not copyable / usable
Post by Tom Revell on Jan 31st, 2018, 3:12pm

@LadyLike - if you download the same file again earlier in this thread, I've added the "edit" as a second menu item now. "Copy" should work better, and I can play with the edit functionality more, before deciding whether it works well enough to be released.

@Cynthia - thanks for your RTF. I loaded it here, and sure enough everything worked correctly. Opening the "edit hyperlink" dialog showed the correct title and link for each of the friendly name URLs, as it has been doing here throughout my testing. However, I'm just one machine...

Clicking on the "copy link" menu item twice in succession sounds like the kind of thing which might cause that trouble - at least potentially. Is that something you're able to reproduce please?

The code I use is mostly cobbled together hack, but if you like to see it, then here's the bit I wrote which extracts the friendly name as well as the URL itself. Note, "tom" isn't me, but "text object model":


// Get the URL
CString url = _T("");
GetTextRange(m_linkRange.cpMin, m_linkRange.cpMax, url);

// Get necessary interfaces
IRichEditOle* ole;
::SendMessage(m_hWnd, EM_GETOLEINTERFACE, 0, (LPARAM)&ole);
ITextDocument* doc;
ole->QueryInterface(__uuidof(ITextDocument), (void**)&doc);

// Get range of URL
ITextRange* range;
// select URL
doc->Range(m_linkRange.cpMin, m_linkRange.cpMax, &range);
// grow to include the friendly name
range->Expand(tomLink, NULL);

long fullLinkEnd;
range->GetEnd(&fullLinkEnd);

CString friendlyName;
// lose the quotes and space
GetTextRange(m_linkRange.cpMax + 2, fullLinkEnd, friendlyName);


Tom
Re: Hyperlinks not copyable / usable
Post by Cynthia on Jan 31st, 2018, 3:48pm

We appreciate your mostly cobbled together hack. smiley

I could not reproduce the weird title for the WaPo link by quickly double clicking the copy link address menu item. I can easily reproduce it, but not by quickly double clicking the menu item.

Right-click the WaPo link and choose "copy link address". When the insert link dialogue appears, choose OK. Then the link name changes to WaPoWaPo. Then right-click the newly named link to see the name changed to
WaPoHYPERLINK "https://www.washingtonpost.com" WaPo
It was a little mistake I made. And while the newly named hyperlink still works, the friendly name is now wrong inside of the insert link dialogue; perhaps that's due to the cobbled together nature of your hack? But who is going to do that - insert one link right next to another - and not notice? No big deal, right.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Jan 31st, 2018, 6:19pm

Tom.
I downloaded the exe and replaced stickies.exe with this build.
I now do have the 'Copy Link Address' in the menu. It keeps working.
But strangely enough, it sometimes deactivates other links from having this functionality. I can get it back after first highlighting the link. This should not be necessary but well, it's doable for now.
I recognize the 'disappearing' as what I described in an early reply: it's as if the link gets 'used up'. A strange thing.

I really like that code, I will look into it since I love coding (HTML/PHP/CSS) so it may pique my interest to do more.

In the mean time: this is usable. It works on this Win10 laptop. Everything still works fine on the Win7 workstation. I am afraid to download the new build to it though cheesy
Re: Hyperlinks not copyable / usable
Post by Cynthia on Feb 1st, 2018, 10:54am

You repaired the right-click option to copy the link address AND you included the option to edit. That newest build with the option to edit hyperlinks works great. Everything works better. I cannot think of a single improvement.

Other people have asked for the option to edit hyperlinks, user RadRussianRus for example.

Thank you, Tom!

Cynthia
Re: Hyperlinks not copyable / usable
Post by eef on Feb 1st, 2018, 2:10pm

The link detection is now rock solid ! The only problem i have is that the tooltip only dissapears if i move over it, otherwise it sticks around till i leave the sticky window . ( win10 pro )

Greetings,
Re: Hyperlinks not copyable / usable
Post by LadyLike on Feb 1st, 2018, 2:17pm

I tested it in full now too.

The link selection works fine.
The copy link always works. Edit hyperlink also works.

What I do notice on my laptop and what's different from what happens on the Win7 workstation, is the following:

Windows7
I right-click on a link.
In the menu I see 'Copy Link Address'.
I change my mind.
I right-click on a different link.
The 'Copy link address' item is present in the menu.

Windows 10
I right-click on a link.
In the menu I see 'Copy Link Address'.
I change my mind.
I right-click on a different link.
The 'Copy link address' item is *NOT* present in the menu.
I then click on the link.
I right-click on that link.
The 'Copy Link Address' item is now present in the menu.

Could this have to do with the problems that were causing the strange behaviour?
And... the cursor is still pretty jittery.


But all is getting much better grin
Re: Hyperlinks not copyable / usable
Post by Cynthia on Feb 1st, 2018, 2:41pm

And here's what happens on my system:

Windows7 pro
1. I right-click on a link.
2. In the menu I see 'Copy Link Address'.
3. I change my mind.
4. I right-click on a link different from the one in step 1.
5. The 'Copy link address' item is *NOT* present in the menu.
6. I then click anywhere else on the sticky (the title bar will do).
7. I right-click on a link different from step 1.
8. In the menu I now see 'Copy Link Address'.

Note: If I omit steps 4 & 5, there is no problem.

Cynthia
Re: Hyperlinks not copyable / usable
Post by Tom Revell on Feb 1st, 2018, 2:43pm

The problems come from the way I'm interacting with the richedit control, and also probably the different versions of that control which are running on W7 and W10. It's a built-in part of Windows, and you can probably understand understand why I'd choose to make use of something already provided for me by MS, rather than trying to code a rich text edit control from scratch.

However, it does mean I'm at the whim of any differences between the versions which there are. My code runs the same whether it's started on W7 or W10, so if the behaviour is different, then that's not down to me, right?

Also, if some code is working OK under W10, then I'm more inclined to leave it in. W10 is the future, and although I appreciate that many people do still use W7, that's the march of progress. Copying friendly link addresses isn't an essential part of note taking software.

However, I can reproduce what you're seeing here, Cynthia, on a W7 VM. Perhaps I can try to work out why it's different, and if nothing else just put a check for W7 into Stickies, and have it act differently under that OS. Sigh, annoying. But thanks for the help in testing everyone.

Tom
Re: Hyperlinks not copyable / usable
Post by Cynthia on Feb 1st, 2018, 2:52pm

"Copying friendly link addresses isn't an essential part of note taking software." Absolutely.

When the right-click menu box is hanging there after clicking a link, who wouldn't click somewhere else BEFORE right-clicking a different link. In fact, the right-click menu box actually completely covers some of my other links. So it makes sense to first click somewhere else to make the menu box go away before clicking on another link. LadyLike, I think I understand the way you would prefer it to work, but your preference doesn't make much sense to me.
User Image

There are a host of little things in Windows and MS software that take a certain approach. It's just the way it is. And as you point out, it isn't necessarily going to work the same on all Windows computers.

Tom, the way it works now is fine imo!

Don't do anything more imo, and stop sighing in annoyance. smiley

Thanks for all of these great fixes and new functions.

Cynthia
Re: Hyperlinks not copyable / usable
Post by Cynthia on Feb 1st, 2018, 6:17pm

Sorry, eef. I didn't see your post until now. Assuming that attention is on the sticky: On your Win10, you're saying that the tooltip shows up when you point at a link address, but it vanishes as you move over the link? Is that what you're reporting?

Using the newest build on my 7pro, the tooltip consistently shows up as I glide the mouse over the link. I already reported on this for an earlier build in a different post.

Cynthia
Re: Hyperlinks not copyable / usable
Post by eef on Feb 2nd, 2018, 06:09am

It is the opposite , the tooltip stays visible if you move away from the link.The only way to make it disappear is to move over the tooltip itself (not the link) or leave the sticky window.

I would prefer to have a timeout if there is no other easy solution because even if you do not use the copy link option when you move over a link it sticks....

This problem can be only on my win10 system , there are more strange things with programs but i spend many months getting rid of annoying options and settings ( the solutions involving using GPedit are so cumbersome) that i loath to clean install win10 again!

If you are on win7 try to stay there as long as possible!





Re: Hyperlinks not copyable / usable
Post by LadyLike on Feb 2nd, 2018, 07:54am

Hi all.
I tested it again with the Windows10 laptop.

The tooltip works just fine here. It faithfully changes as I hover over a different link. It is jittery which has been the case since the beginning after installing Stickes and I mentioned this when I reported this issue.

But I DO have the 'Copy link address' option back in the menu. And this is what matters to me the most: I have to send people the plain link instead of the hyperlinked name of the page.

Right-clicking and 'chaning my mind'
I clearly work differently than you, Cynthia, as all people are different. So please bear with me smiley

Since the pop-up is narrow enough to not cover too much I can easily see the other link I want to right-click.
As explained, I used to be able to right-click on another link which would deactivate the active pop-up and immediately beccome active for the newly right-clicked link, including 'Copy link address'.
This is no longer the case. Instead, after right-clicking again, I get a pop-up without 'Copy link address'.

This seems wrong to me which is why I mention it. It may be interesting and helpful to find a solution, if, that is, Tom has enough hair left after pulling out so many.

I am happy to have the 'Copy link address' functionality back! This is a huge help!!!


Re: Hyperlinks not copyable / usable
Post by Cynthia on Feb 2nd, 2018, 09:48am

eef, I am sorry for your Win10 issues. Ugh! The behavior of the tooltips for Stickies links are pretty strange indeed. Have you noticed any oozing slime coming out of the cracks of your computer? It could be that your machine is from the Upside Down in Stranger Things (ref. Netflix). Until someone else reports similar behavior, I agree with your assessment; it's all about YOUR Win10. Thanks, I'll take your advice and hang onto my Win7 for as long as possible. smiley

LadyLike, if Tom continues to tweak the code and is successful getting hyperlinks working exactly the way you had it before, I probably won't even notice.

I'll be sure to try out any new builds you provide us with, Tom. It appears that I'm the only one who "is good" with the last build. One out of 3 - not bad. I'm kidding! eef's system is an outlier ... we hope.

Have I gushed over Stickies lately? I haven't. Stickies is sooo great! And you're always making it greater - thanks!

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Feb 3rd, 2018, 11:53am

@Eef
I don't have a sticky tooltip here on Windows 10. Thankfully! I use plain stickies out of the box, no fancy stuff going on.

@Cynthia
It is okay if you don't notice since you are not on the same OS. Not noticing would probably be a good thing.

In any case: we all have our own way to work and gave it much thought, I assume, to be efficient and fast while we work. This is why it's annoying when something causes a bug. I want to thank Tom for digging into this and solving the 'Copy link address' issue that was present in Windows 10. I do not have any problems with Stickies on Windows 7 as explained, but have both systems and even Windows 8 on yet another machine, as well as older horses running XP for development purpuses. But I won't test on all grin
Re: Hyperlinks not copyable / usable
Post by LadyLike on Feb 3rd, 2018, 12:54pm

@Tom
One more little thing that might help solve the mystery.
It seems that almost every time (say 3 out of 4) I want to add a hyperlink, this happens (I just tested it many times in a sticky that already contains links and that I want to make complete with all remaining necessary links).

I highlight text.
I right-click on it.
'Insert Link' is not in the pop-up menu.
I right-click on the highlighted text again (same location).
'Insert Link' is now present in the pop-up menu.

This is the case most of the time. For my work I have to be very precise so I am always careful when I select something to make sure I am in the correct location.

I have been playing with this for a little bit here now and thought I would post. It is not super important but I find it interesting enough to mention it.
I had another thought, in Windows 10 there is a tendency to 'slide' and 'animate' things. Could this have to do with the above issue and the issue of the jittery cursor?
Re: Hyperlinks not copyable / usable
Post by Tom Revell on Feb 6th, 2018, 2:02pm

You want to try the download link again - I've just tweaked it a little more.

The problem I have is that the tooltips are not provided by the rich text control, so I have to create and manage them myself. To do that, I need all the relevant info from the control. I need to be told when the user moves the mouse over a link, and when they move it away from the link again.

I get notifications for:



Now with those message, try to come up with a scheme as to when to show and when to remove a tip. It's not very simple. The other feature I use to show/hide them is a timer. Right now the code runs something like:

User is over a link: show the tip, start counting to two seconds
User leaves the sticky: hide the tip now
Two second timer reached: hide the tip now

It's not perfect, and I agree to get the correct menu items to appear you might have to move the mouse over a link, especially when leaving a previous one, but I'm not sure I can do better with the information available to me sad

Tom
Re: Hyperlinks not copyable / usable
Post by Cynthia on Feb 6th, 2018, 3:09pm

I tried out the new build. Here's the way it works on my Win7pro. smiley

1. Point at a link continuously: The effect is that the tooltip appears just below and to the right of the link; the tooltip's appearance is continuous as long the mouse points at the link.
2. Point at a link, then move the mouse over the tooltip itself: As soon as the mouse passes over the tooltip, the tooltip vanishes.
3. Point at a link, then move the mouse somewhere else inside the sticky's text box, away from all links and tooltips: The tooltip vanishes after 2 seconds.
4. Point at a link, then quickly move the mouse away from the tooltip and outside the sticky's text box: The tooltip vanishes immediately.
5. Point at a link, then move the mouse to point at a different link (without passing over the first tooltip): The tooltip for the first link keeps showing for the minimum of {2 sec or the time it takes to move to the new link}.

Why not a half second or a one second timer instead? Just a thought.

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Feb 7th, 2018, 09:09am

Dear Tom.
I tried the new build on my Windows 10 machine.
With me it's very stable now, except for the little weirdness I had and I think it might have to do with where I click: I have to click a bit near the bottom of text, almost underneath it. This was never the case before but I can get used to that.

No issues whatsoever with the link tooltips, the tip changes immediately when I hover over a different link to reflect that link. So for me it was already good.

The tip is below the link which results in obscuring the text below it but since I carefully prune my links sticky this is not an issue to me, I can still see where I want to go and should be smiley

The one oddity that seems stable is the jittery cursor as I described in one of the first posts, or maybe even the very first. This is different on Windows 7.

Re: Hyperlinks not copyable / usable
Post by Tom Revell on Feb 7th, 2018, 2:18pm

The delay before the tip is removed is something which is wholly within my control, so that could be half a second easily enough. Perhaps that makes more sense, so that the tip remains in place when the mouse is over it, and then disappears once it's left it...

Tom
Re: Hyperlinks not copyable / usable
Post by Cynthia on Feb 7th, 2018, 6:20pm

If the mouse is moved down and to the right of a link, then the tip vanishes immediately because the mouse pointer quickly strikes the tooltip. If the mouse pointer is moved upward in the text box from a link, it's possible to begin typing before the tooltip fades away; in this case, two seconds feels like an eternity. Go away, go away, little tip. smiley Long ago I recall tooltips for buttons persisting after moving away from the buttons. The behavior seen with the links is similar.

The tip serves no purpose once we've moved on, right? May I suggest setting the timer to some fraction of a second, even smaller than 1/2 second?

Cynthia
Re: Hyperlinks not copyable / usable
Post by LadyLike on Feb 9th, 2018, 09:13am

I have no issues with the tooltip whatsoever. Not when moving in any direction. I suppose this might have to do with other settings on someone's machine. I will compare the tooltips with the ones on Windows 7 too, next week.

I tested something again though..
The only thing left is the strange thing when I highlight text that does not contain a link while the text above/under it does contain a link. The pop-up only shows 'Copy Link Address' as if it thinks the link below is highlighted.
So I just decided to use the 'Copy Link Address' to see which link would be copied.
It copied the link below it...
So it's really as if something is out of whack. This would be consistent with the fact that I mentioned I have to carefully click nowadays to get the proper pop-up menu.

It's strange though! huh
Re: Hyperlinks not copyable / usable
Post by LadyLike on Today at 1:31pm

I express my thanks to Tom who worked hard to solve this. I had to send someone a few links and it was so easy to just hover over, right-click and select 'Copy Link Address' again.
Thank you for your hard work Tom!!! I would add a little heartie here but the current emoji set won't let me. So <3