Including the website URL via {url} in filename pattern does not work

Description

Hi there,

I am trying to include the URL from the website, where a screenshot was taken from, in the filename pattern, e. g. by changing the filename pattern to something like this:

${title}${url}${capturetime:d"yyyy-MM-dd HH_mm_ss"}

Meanwhile getting a bit seperate I tried also other variable names like ${%url%} or similar, but nothing works out..

Am I doing something wrong or is it a bug?

Environment

Win 7 Professional SP1

Gliffy Diagrams

Activity

Show:

Pete Wilson July 29, 2015 at 6:06 PM

Note that it is possible using accessibility APIs to get the URL for Chrome or Firefox:
http://stackoverflow.com/questions/23635853/get-active-chrome-url-using-c-sharp

It would be interesting if Greenshot implemented .Net scripting like DisplayFusion does.

Sebastian H. July 29, 2015 at 3:55 PM

At least I contributed something slightly smiling face I might try the next Greenshot, but now I am still looking for a suitable way to capture screenshots with their originating URL right away in as few steps as possible.

Thanks four your help!

Robin Krom July 29, 2015 at 2:06 PM
Edited

Damn, you are right... I found the bug, and already fixed it in a future Greenshot 1.3 build. (1.3.0.32 or later)

If you are happy to experiment with the next Greenshot, but I need to warn you that there might still be a lot of bugs in it, than you can download it here:
https://github.com/greenshot/greenshot/releases

If there are bugs, please report them... if there are really bad bugs, you can always go back to the latest release (just install the latest, the newer will be removed).

Note: Only possible if you have .NET 4.5 installed, or have no problems when this will be installed!!! We need to upgrade the .NET Framework, as we have some bugs that only can be solved that way.

Robin Krom July 29, 2015 at 1:40 PM

Let me check what might be wrong there, actually it should...

Sebastian H. July 29, 2015 at 12:30 PM
Edited

Hi Robin,

First of all thanks a lot for your lightning fast response.

Indeed,

${url}

was simply skipped when I tried this in FF and Chrome.

Now using the IE Capture function as you've described it above seems to go in the right direction, however GS does not swap colons etc. in the url e.g. with underscores, which leads to an error message saying 'invalid filename'. The only workaround I see is to manually Warning swap colons, "&", slashes etc. with allowed characters, which is not that helpful, I'm afraid.

Here's some output file name that GS tries to save:

MSN Deutschland – mit Hotmail Nachfolger Outlook und Messenger Skype-http://www.msn.com/de-de/?cobrand=dell13.msn.com&ocid=DELLDHP&pc=MDDCJS-2015-07-29 14_18_21.png

Should we turn this bug into a thingy more concentrating on "Characters not allowed in the Windows file system are not swapped with valid characters (e.g "_") when using ${url} for saving URLs in file name pattern"?

Thanks with regards
Sebastian

Details

Assignee

Reporter

Affects versions

Priority

Labels

Created July 29, 2015 at 9:40 AM
Updated July 29, 2015 at 6:06 PM