DonationCoder.com Forum

Main Area and Open Discussion => General Software Discussion => Topic started by: questorfla on June 13, 2015, 01:40 AM

Title: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 13, 2015, 01:40 AM
For a long time now I have been looking for a way to save the URL to the sites where I download from.  A simple way to be able to go back to the site where I found each app or Program I downloaded.  Just the written text in a TX file would do but an active URL shortcut would be even better.
One day I noticed that Maxthon has the option to copy the target URL at the time I save the download which would be a perfect solution.  Except they did not complete the task.  After i click Save and the download finishes i still have to navigate to the downloads folder, open a text file, (or create a new shortcut) name it as the name of the download and paste the contents of the clipboard into it and save the results.
The end result is exactly what I needed but it takes so many steps to do something that it seems should be a part of the setup.  What is the point in copying the URL if I am not going to save it somewhere?  Most logically in the downloads folder with the name of the download I got from that URL.   If i could change the layout such that the URL is saved to a Shortcut instead if a text file this would probably work.
I wrote to the developers at Maxthon but go no reply so far.  I wonder what they intended that Save URL to be for if not what I need?  Anyway, since it saves to clipboard, if there is a way to add the rest of the process into the download script it would sure be nice.
So far I have not found the name of the variable that holds that info nor a way to add a couple of steps into their download script but I assume it is there somewhere in their developer modules?
Has  anyone here played with customization of their browser?
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 13, 2015, 07:34 AM
If you have the url in clipboard it may be a good use for CommentExplorer. Once you save the download you can select it with the mouse in Explorer and press Shift-F11 to bring up an inputbox to paste it instead of a comment.

The name of the file is the key to the comment data so you should not rename the file once you have commented it.  Of course you can press Shift-F11 again to display the comment to copy to clipboard before renaming.  To just see the comment select the download file with the mouse or arrow key.

A fairly quick way to launch the url with a browser from the comment inputbox if you have BrowserBunch running, select the url in the inputbox and press Control Shift F4.  BrowserBunch will load with the url copied to clipboard.  Click a browser and it will navigate to the url if launched via that hotkey.

Both programs are free and may be downloaded from my page here:
http://milesaheadsoftware.org/

See the included Readme.txt files in each zip for detailed usage info.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 13, 2015, 07:45 AM
Another possibility may be a Tree type note program such as TreePad.  Paste the url on the right hand data side of a new node and name the node after the downloaded program.  TreePad supports clicking links to launch the default browser.

In fact instead of going through BrowserBunch to launch the url at a later date, EditPadLite7 makes clickable links for urls it finds in text files.  If it is the default editor for .txt files, double clicking CommentExplorerFolderData.txt in your download folder will bring it up.  Just search the filename and double click the url on the next line.

CommentExplorer has 2 modes.  Folder and Global.  Folder is more versatile because it makes a data file in each folder in which you comment a file.  Global mode you only have to deal with one data file but there is the old drive letter buggaboo if you should move files to other folders/drives/machines etc.  The entire file path has to match to retrieve the comment.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 13, 2015, 02:08 PM
Thanks MilesAhead, I will try one of those.
When I saw your comment, I was a little bit DeJaVu as I swear i had just run across your site (or seen the name in some way) during a search for some settings on a new driver from Intel for my NIC. < blog.workinghardinit.work/tag/10gbps>
Scaling up to 10GBPS already?  I can hardly wait for it to be the norm.

I had previously considered using one of the "properties" options in the downloaded file itself but i ran into issues finding a workable program that could do this.  Most of those that did worked with nothing but Music or Video files.  Even if it did, the information would be something i could only "see" but not access as a link.  So I had to pass on a solution that would have made it an all-in-one fix.

Would be nice if that was an option.  Maybe a right click to access a specific property of a file (where i could place the URL) rather than left click to run the default application for that file type. Now That would be a slick package!

Looks like your comment explorer does do almost exactly this.  Where is the comment actually stored?  Other than the shift-F11 is there another location to find the info such that it would be a click-able URL?  Or maybe if it could display on hover?  >>  :)  Just kidding i am sure that would be a huge mod to the windows explorer setup<<

Worked very well though and thanks for that.  I will now try the Treepad option but your AHK setup beat having to create shortcuts.  Although... since you wrote the script for the comments in ahk suppose it would be possible to create the "new shortcut" the same way?  then I could paste the url into the shortcut path and be done with it since the shortcut automatically names itself as the path entered unless you chose to change it.?
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 13, 2015, 03:33 PM
OK,milesahead, I give up.  I will just hope you have a different view on this problem as nothing i can find even gets close to the need.
After my last comments on your post, i started thinking again about why i could not simply do what i said i needed.  I knew i had tried this before and while i never found anything that worked, it always seemed that it was just around the corner.
Because Maxthon makes it so easy to first click to copy the URL, then click to download the file, the URL is still held in the clipboard SO if i could only do a right click on the downloaded file and add that info the file itself that would solve everything and keep the directory nice and tidy.
Problem is, i cannot find a program that can add a "property" to a ZIP file.  Or for that matter to any file other than music or video.  I can display many properties but cannot edit any of them.  Nor can i add one of my own. 
After trying out 20 different utilities I now have so many right click options i need to clean the clock on most but not one of them can so something as simple as add a property called "URL" and paste in the info in the clipboard.  Or even use the clipboard info to fill i a preexisting field like "description"
I have to wait for a more adept hacker than i to figure this one out. 
I still cant believe that this is not already a built in option with some program.
All the parts are there, just no way to assemble them. :(
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: TaoPhoenix on June 13, 2015, 07:09 PM

Okay, not counting it's a couple of clicks, I'll do my usual "foot in mouth" routine and ask what you are trying to add, that's not "Right Click / Properties" in regular Windows!

Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 14, 2015, 06:52 AM
I still cant believe that this is not already a built in option with some program.

The reason for the difficulty is Windows file system does not support comments.  I'm told DEC file system CMS had this feature.  I suspect the database file system Windows Longhorn was supposed to feature, but never did, was a CMS port to Windows.

So what it means is you have to do things like create external files to hold the comments or annotations.  When you copy a file using Explorer or command line, the system knows nothing about annotations so the comment does not travel with the file.

In fact I wrote a shell extension called TipOff for 32 bit Windows that showed the comment when you hovered the mouse over the file in Explorer.  It did this for certain archive file types such as zip rar tar etc..  Unfortunately for your purpose I don't know if there is any way to copy a tooltip display to clipboard so that you could launch it in the browser.

https://www.donationcoder.com/forum/index.php?topic=28529.msg266872#msg266872

The Property Page Tab in the screen shot is what you were talking about afa typing or pasting in data.  It seems more convenient than it is I can tell you after testing these shell extensions.  It gets tedious quickly.  But ok for commenting downloads assuming you don't use it for hundreds of files a day.  :)

Note the link in the post is dead. I still have the program but it only works in 32 bit Windows.


An easier approach may be to keep EditPadLite open and paste the link into it.  The editor makes the link clickable.  Then you could just put the name of the file on the next line and do control f search.

For the TreePad file approach I have a program on my page TreePadGen (http://milesaheadsoftware.org/) that creates a TreePad file(.hjt) with a blank node for each file in a folder.  At least it would save typing or pasting in the names of all your downloads.






Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: Shades on June 14, 2015, 08:01 AM
Not sure if there is an add-on for IE/Maxxthon, but I (mis)use the FF add-on 'Zotero' just for this purpose. Although the idea behind this add-on is for keeping references to whatever subject you do research on...it is actually very usable for storing the url (and a copy of the page behind that url) of your download. When you have a list of URL's like this it is easy to search through them, you can add/remove tags easily. Even better, you don't even need an internet connection to see the copy of the page you put in Zotero (but it is able to update the copied page when you do have an internet connection.

There is also a stand-alone version of Zotero (https://www.zotero.org/), if you are more interested in using the software as intended.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: TaoPhoenix on June 14, 2015, 09:21 AM
Okay, not counting it's a couple of clicks, I'll do my usual "foot in mouth" routine and ask what you are trying to add, that's not "Right Click / Properties" in regular Windows!


Since MilesAhead's screenshot seems different from my system, I'll post one of my own to hopefully explain my confusion.

[ You are not allowed to view attachments ]

Does anyone else have this on their system? Does it do what he wants?

Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: KynloStephen66515 on June 14, 2015, 09:41 AM
Not too sure if this is exactly what you want (and it hasn't been updated in over 2 years) but I made this: https://www.donationcoder.com/forum/index.php?topic=34461.0

Might help you in this situation (Although, if I read this thread and got it completely wrong, feel free to ignore me!) :D
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 14, 2015, 11:01 AM
Okay, not counting it's a couple of clicks, I'll do my usual "foot in mouth" routine and ask what you are trying to add, that's not "Right Click / Properties" in regular Windows!


Since MilesAhead's screenshot seems different from my system, I'll post one of my own to hopefully explain my confusion.
 (see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=41095.msg383270#msg383270))
Does anyone else have this on their system? Does it do what he wants?



No Summary Tab after XP (http://answers.microsoft.com/en-us/windows/forum/windows_vista-desktop/summary-tab-missing-from-properties/b58d0781-f132-42ea-a5ea-589f51f2b684)
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 14, 2015, 11:33 AM
questorfla would a program in the SendTo folder be alright or is that too many clicks?

Or context menu or drag and drop onto desktop icon and Open With or yet another hotkey in the tray.  :)

 If the url is going to be in the clipboard when my program launches or gets a hotkey press and I can get the path of the selected program in Explorer then it should be easy to create a .url file in the same folder as the download.  Initially the icon for the file would be the default browser.  I would have to play it by ear when it is time for customizations.

But say you have C:\MyDownloads\CoolFreebie.zip, you would select it and either use context menu or sendto or hit a hotkey, then would appear C:\MyDownloads\CoolFrebie.url with embedded whatever text was in the clipboard.  Hopefully a url that is navigated to by the default browser when the shortcut is double clicked.

If you want to try that I can likely have something working during the day tomorrow.  Then you can try it out and see how it feels, suggest enhancements or decide it's not the way to go .. whatever.  :)

Edit:  If you already use a general purpose hotkey script then it may only need 1/2 dozen lines of script added to do the .lnk file creation. 



Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: Innuendo on June 14, 2015, 11:49 AM
I'm going to offer an alternate solution...it's what I use to keep track of download URLs. It's a two-prong approach. I use a download manager, Internet Download Accelerator, that saves comments/URLs in descript.ion files. I then use a file manager, Directory Opus, that recognizes descript.ion files to display the comments.

It's an archaic system as descript.ion files go way back to the days of MS-DOS, but they still have use in today's world. I was very sad when ACDSee dropped the feature of supporting descript.ion files.

Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 15, 2015, 11:11 AM
I don't know why I didn't think of it before.  Somebody must have sprayed me with "Stupid" or something.  :)
I can just modify CommentExplorer so that when the ToolTip displays the comment it is copied to the clipboard.  I was saving clipboard contents and putting it back after using the clipboard to get the filename.  But if the user is browsing through the download folder chances are there aren't a bunch of clipboard operations going on.

Besides, one of the most obvious uses for CommentExplorer and the reason I wrote it, was for commenting downloads.  A url is as good a comment as any.   :Thmbsup:

I think I'm going to do this modification today as it is quick and easy.  As soon as I get it debugged I'll upload it to my page and post a note here.

Edit:  Hmm, may not be as easy as I thought.  Too many interactions with the clipboard as it is.  My Copy as Path doesn't work while CommentExplorer is running due to this.  I'll have to rework it one of these days to use an ahk library to get Explorer selections rather than the clipboard.

Of course another flaw in the design is I don't have any indication which files in a folder have a comment until I click on them.  Not having this built into the file system means it's a kludge no matter what.  I hate it that I'm still messing with this after 14 years.  Maybe I'll switch to Linux when Windows 10 takes over.  :)


Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 15, 2015, 04:09 PM
I haven't tested the modifications with all the copy functions etc.. but the main function seems to work.
CommentExplorer 2.5.0.0 no longer uses the Clipboard to get the selected items in the Explorer folder.
It uses Explorer_GetSelection() function by Learning One from ahk forums.

When the ToolTip comment appears it is copied to the clipboard.  When the ToolTip closes the original clipboard contents are restored.  This has the nice side effect that now the Windows Copy As Path is working again on my system.

(http://yoursmiles.org/bsmile/fun/b0202.gif)

Note that all the stuff in the zip file should be unzipped to the same folder.  Don't delete the DLL because the program will likely crap out if it tries to make a Taskbar Progress and it is not found.  :)



Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 15, 2015, 07:15 PM
You guys are great!  I have not been able to check back in but both of you seem to have some excellent methods in mind.
Don't get me wrong, it isn't that it is "too many clicks" or anything like that, it was a matter of "how it should be" and it isn't.  I have thousands of files in storage that i may never look at again but at one time, I thought they would be useful for some reason.  Usually, just gong back to where i found them is enough to jog my memory.  That was the original intent.  A download manager requires me to keep the files all in the same location as they were when the manager indexed them which over the years would not be the case,
While I COULD write up a brief note about where i got it and why and zip that up with the file, then i have to unzip he bunch to read the notes. 
Kind of like browsing through all the titles on Audible audiobooks and seeing an author i like i can then play a part of the book as a sample to see if it is interesting.
I started thinking how nice it would be to be able to "browse" through all those files and see a "synopsis" of the file in a "pop open" window that would display like a tool-tip when i hovered over the file.
To do this, i would need to be able to store just a small amount of data somewhere that would not mess up the file itself.  That was when i found "tags".  The problem was, for reasons I cannot discern,
They only work on video and audio files.  They are "there" on all files and usually empty.  Windows even offers to remove them (in cases where they can be removed) so i started looking for how they could be written to in the first place.  If a "tag" named URL were to have the actual URL of the file and one called description could hold a sentence about what i go it for.
I was looking for a way to make finding and using files that were located sometimes years before and now are only a zip file in a huge archive.  No references as to why it was put there or where it came from without opening the zip to see.  Plus those tags are searchable with windows so i could find those i might have referenced as "executable editors" or ?? but at least i could have a way to look for more than a file name which in some cases is just "setup.zip"
I really appreciate your efforts and perhaps I am the only one who thinks OLD "stuff" would ever be of use in a NEW WORLD anyway ?? :)

Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 15, 2015, 10:45 PM
My take on it, since the URL is already in the clipboard just send it to a .url with a little DOS help:

Code: Text [Select]
  1. @echo off
  2. rem Paste2URL.cmd
  3. rem Puts contents of clipboard into internet shortcut
  4. rem Requires paste.exe from http://www.c3scripts.com/tutorials/msdos/paste.html
  5. echo [InternetShortcut] >"%~n1.url"
  6. echo|set /p=URL=>>"%~n1.url"
  7. C:\Scripts\paste.exe >>"%~n1.url"

A little registry hacking to add it to the file context menu:

Install:
Code: Text [Select]
  1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\*\shell\Paste clip to URL shortcut]
  4. @=""
  5.  
  6. [HKEY_CLASSES_ROOT\*\shell\Paste clip to URL shortcut\command]
  7. @="cmd.exe /c C:\\\\Scripts\\\\Paste2URL.cmd \"%1\""

Remove:
Code: Text [Select]
  1. Windows Registry Editor Version 5.00
  2.  
  3. [-HKEY_CLASSES_ROOT\*\shell\Paste clip to URL shortcut]

[ You are not allowed to view attachments ] [ You are not allowed to view attachments ]

REQUIRES: paste.exe (http://www.c3scripts.com/tutorials/msdos/paste.html) - adjust any path to suit where you put the script and/or paste.exe
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 15, 2015, 10:46 PM
>>>ADDED<<  Alright 4wd.  You popped in just as I posted this and i just read your posts.
Now i have to try that too  :huh:
So you might as well give the Whole Enchilada a Whirl.  A whole new system.  File-Wiki's that stay attached to the files they comment on.
<<<<<>>>>>>>>>>>>
I just had my daughter toss in her 2 cents worth and it added another whole level of possibilities to this.
While this is far beyond my capabilities, perhaps one of you can see a way for this to happen.  The results would be more like a permanent "tag" that would be attached to the file just as any picture file etc only this would be the same for program files.  
The way her input changed things was that I should be making these comments and URL links a permanent "TAG" entry for the file.  One that could be seen and used by others.  Sort of like a "Wikipedia" entry for the program or file it is attached to. A short description of what it does as well as some sort of grading system (ie: 5 star etc) and perhaps even a Likes and Dis Likes vote.  This way if I shared the file with someone else they could benefit from the inputs of everyone else who had handled it.
I think that is great but it is also far more than I can manage.  But it does give another viewpoint on things.  I am sure all of us have downloaded files from sites where it sure would be nice to be able to see that previous handlers of the file had given it a high rating or made comments such as Beware of added Crapware.   These are the things you do see in comments where you go to get the file to start with but those comments don't STAY with the downloaded file and are often forgotten when you run it months later
This is the kind of thing that perhaps even DC would benefit from if this was done in such a way as to make it an
"added feature" of the file structure.  Something you would not see or even know was there unless you had the proper application running to allow you to view this mini-"FileWiki" on your own system any time you viewed your downloads.
My daughter thinks bigger than i do, and i would still settle for the pop up URL if it was click able.  I can see info about every file that pops out when you hover over the file but none of it is interactive (ie: clickable) and i have not found a way to modify what is displayed though i am sure it is something simple,  I thought I would toss her added idea out there before i started trying to work with both of your suggestions.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 15, 2015, 11:11 PM
So you might as well give the Whole Enchilada a Whirl.  A whole new system.  File-Wiki's that stay attached to the files they comment on.

That's way beyond the scope of my brain cell  ;D

But as a suggestion you could try using the Alternate Data Stream (http://blogs.technet.com/b/askcore/archive/2013/03/24/alternate-data-streams-in-ntfs.aspx) to attach comments to files.

There's an explanation on that page of how the ADS is used to tell Windows whether a download is from a "nice" website or not.

Here's a modified command file that will paste the clipboard to an ADS for a file:
Code: Text [Select]
  1. @echo off
  2. rem Paste2ADS.cmd
  3. rem Puts contents of clipboard into an ADS called Comment
  4. rem Requires paste.exe from http://www.c3scripts.com/tutorials/msdos/paste.html
  5. C:\Scripts\paste.exe >>"%~1:URL"

You can then view it with Powershell:
Code: PowerShell [Select]
  1. PS C:\scripts> get-content -path shortcut.exe -stream 'URL'
  2. http://ss64.com/nt/shortcut.html
  3. PS C:\scripts>
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 15, 2015, 11:19 PM
AHH!  Soooo Close! :o
But the copied URL is http://seedling.dcmembers.com/download/mixtape_11038105.zip
This was just a test.  I emptied my DL folder so nothing in it, then dl'ed just the one file i was hoping (but not expecting :(  ) that it would be on full auto and i would find the mixtape file along with the url to get back to it inthe downloads folder just by clicking copy url, then clicking download and save.
But even if i go to the downloads folder, while i do have the right click option to past clip to url shortcut But-- if i right click the file, doing this makes nothing for me :(  I was so hopeful ... And it is probably something i did wrong.
The registry edit went fine and paste is in the windows folder.
As long as you got that far dont suppose you could make a litle more magic and bend this hole procedure into the act of clicking download?  If the URL in in the clipboard, dont suppose there is a way to make it link up with the clicking of the download button?

 ;D :onfire:  Why not ask for the stars if you are already to the Moon.??  Seriously that was some quick reg hacking.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 15, 2015, 11:30 PM
But even if i go to the downloads folder, while i do have the right click option to past clip to url shortcut But-- if i right click the file, doing this makes nothing for me :(  I was so hopeful ... And it is probably something i did wrong.
The registry edit went fine and paste is in the windows folder.

You did edit it to reflect any path changes you made, right?

Works fine here, (even with files with spaces which I forget about most of the time).

As long as you got that far dont suppose you could make a litle more magic and bend this hole procedure into the act of clicking download?  If the URL in in the clipboard, dont suppose there is a way to make it link up with the clicking of the download button?

Not likely, this would probably require monitoring of the clipboard all the time to capture any URLs or some sort of browser plugin.

Nifty thing about the ADS is it's linked to the file, wherever the file goes, whatever it's renamed to, the ADS travels along.  Only works for NTFS naturally, so as soon as you copy to a non NTFS filesystem, it's lost.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 15, 2015, 11:31 PM
Almost........ I had to try it.  Streams is close.  Maybe close enough.  Never even heard of it.  Interesting stuff
But there has to be a native windows way to edit the "info-text" pop-ups that come up when you hover over a filename in Explorer.
So far, i can see at least 3 lines showing file size and other stuff.  There hs to be a place that controls what is displayed and where it comes from.  Some had 4 lines so i also know it is variable.
And on Media files you see almost a whole page full of info about authors bit rates etc.  
But you are on a Roll tonight!  :)  Thanks for the "whudda thot"  that?
What did I do wrong on the URL paste?

Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 15, 2015, 11:45 PM
The files you want to add comments to don't have metadata or another means of adding extraneous information, (excluding archive comments and the ADS).

But here's an Explorer extension (http://www.benf.org/other/alternatestreamoverlay/index.html), (with source), that shows whether or not a file has an ADS, I wouldn't think it would be too hard to modify it to show just what a "Comment" ADS contained.

What did I do wrong on the URL paste?

Can't tell you, I'm not sitting in front of your monitor  ;)

Addendum: Found via StackOverflow (https://stackoverflow.com/questions/9032774/windows-explorer-alternate-data-stream-shell-extension), there's an old Property sheet handler that may work under x86 (was written for 2000/XP) that shows ADS: StrmExt (http://download.microsoft.com/download/f/c/6/fc6943eb-790a-44aa-b32d-14ed7e22fd5d/ntfsext.exe)

64bit version (http://www.boredomsoft.org/strmext.dll-on-x64-windows.bs) - working on 8.1Pro:

[ You are not allowed to view attachments ]
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 15, 2015, 11:54 PM
You did edit it to reflect any path changes you made, right?
Works fine here, (even with files with spaces which I forget about most of the time).

Maybe i am thinking about this wrong.  If i go to downloads folder and right click in empty space the option is not showing.
If i point to the file i downloaded and then right click i see the option but when i choose it nothing happens.
If i create an empty shortcut ..of course that just disappears as invalid.
If I create a Good shortcut manually and put something in it so it will stay, this time the new paste as URL option is not even there.
I am a little unsure about what to expect but if it should be creating a .url file using the data held in the clipboard as the primary part of the name and .url as the extension, that isn't happening.  As I noted, the option to paste as URL is only showing IF I click on an existing file as though i was going to change the file's name or type and the only type it will not even show up at all on is if i choose a pre-existing URL.

Am I misunderstanding that it should be working by simply clicking on the folder or inside the folder to create the url?
I am not good at this but it appears that the right click option is working in context as related to the "shell" for editing a file rather than creating one?  Maybe I am not saying that right but it shows as an option >only< if i am selecting another file to right click on.  If i right click on the "download directory" it is not in the command options.  If i right click in empty space inside the Downloads folder, it does not show either.  I must right click while pointing at a file in order to have the option show up which, if it did work, would be in the same group of commands as if i wanted to rename, delete or change the chosen file itself in some way.
Clicking it at that point, however, does not appear to do anything at any location i can see although it could be somewhere else on the system
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 16, 2015, 12:12 AM
Maybe i am thinking about this wrong.  If i go to downloads folder and right click in empty space the option is not showing.

Correct

If i point to the file i downloaded and then right click i see the option but when i choose it nothing happens.

You did put both Paste2URL.cmd and paste.exe in a directory called C:\Scripts, correct?

I am a little unsure about what to expect but if it should be creating a .url file using the data held in the clipboard as the primary part of the name and .url as the extension, that isn't happening.

1) Right-click on file (for this example it's downloaded program.exe)
2) Choose Paste clip to URL shortcut
3) Creates a file with the same name but with extension of .url (downloaded program.url) - you will not see the extension of .url in Explorer, it will just look like a normal shortcut without any extension.
4) [ You are not allowed to view attachments ]
5) Contents of downloaded program.url

Code: Text [Select]
  1. [InternetShortcut]
  2. URL= http://yadayadayada.com/downloaded%20program.exe

Of course, if Maxthon isn't really storing the URL in the clipboard as just (for example) http://yadayadayada.com/downloaded%20program.exe then the shortcut created will be invalid.  (The URL should contain escaped characters if Maxthon is doing it's job properly.)
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 16, 2015, 12:33 AM
I was just coming back to apologize.  I THOUGHT I did but I had not.
I had put it under Windows. I had even later that it needed to be in C:\Scripts and thought i copied it there (at least Paste.exe) but when I looked...Lo and behold Paste was not there.  By then I had concluded that everything should be in that folder anyway so I moved it all to c:\scripts and..
MEA CULPA mi Amigo!  Perfecto again!  it works as i would expect it to.  Point to the file you just downloaded, right click and choose your nifty add in and it DOES create a shortcut SO WELL that it it starts another download if not careful!
The "copy" in Maxthon is the "direct-link" to the actual download itself rather than just the main website (which is fine at least it gets me back to where it came from)

And all this other neat stuff you dredged up from God Knows where about Alternate Streams and such is exactly the kind of thing to drive someone NUTS over a rainy weekend.  I feel sure i will get my chance, :)

Needless to say:  My apologies. your stuff always works  :Thmbsup:  I just did not read closely enough the paths involved.

All but myself have hit the hay and I am about to as well but tomorrow i should have loads of fun with Alternate Streams of Reality or...
something similar.  Just the little i read by the references you sent was enough to give one pause to think what all else might be hidden between all those ones and zeros.





Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 16, 2015, 12:57 AM
There's an updated version of StrmExt available here: http://redwoodal.sweb.cz/StrmExt/StrmExt_mod_1.0.0.5.7z

This version fixes a couple of bugs and lets you edit the ADS, (using RWStream.vbs - you need to hit Cancel when you finish adding stuff).  See my post here (https://www.donationcoder.com/forum/index.php?topic=41095.msg383352#msg383352) if you want to right-click add an ADS called URL.

Here (https://www.donationcoder.com/forum/index.php?topic=41095.msg383458#msg383458) if you want the PowerShell version.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: Shades on June 16, 2015, 08:39 AM
Now let's hope that the link to the file you download still exists after say...six months? Or worse, the user/company moving domains? Or change the system behind their website (for example from Wordpress to Joomla)?

In my experience links do not always exist that long and you'll still end up with no info at all. As a serial downloader I have been burned enough by this. Nowadays I stopped with being a serial downloader and have used my system for years when I do need to download something. Granted, it isn't ideal either, but I have all the info (links, descriptions, screenshots, etc.) about the download, structured and searchable locally, but if I choose to in the cloud as well.

It all depends on what you want, I guess.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: MilesAhead on June 16, 2015, 09:07 AM
Sometimes when the sources dry up the only way I could find a download was to use the original download filename.  Like My Super Duper Utility version 5 might have a download name msdu5.zip.  Sometimes a google will pick up a copy sitting on a university server when nobody else is still hosting it.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 16, 2015, 06:24 PM
Wow Talk about overload.  If i can't find the answer here somewhere then it does not exist!
Shades, i also saw your Zotero and after I actually got 4WD's Paste trick to work, i found out that what MAXTHON copies as the URL is a little TOO specific.
Not only that, but it also cannot always be modified to even get me back to the ballpark of where the file came from (like in cases where it came from zdnet or similar).
It is SO specific that i almost wonder what the point was in putting the option thee as what is gives is more like a Virtual-Link to the file itself.  It has no use other than as a direct reference to that one point and you are probably correct in that it wont be at that exact location maybe even as soon as the first version upgrade.
Still, that was WELL worth the "Ride" as i found all kinds of things that NOW i need to make those notes about why i found them and what is there and HOW to get back :)

The more i thought about the "Wiki" thing the better  it sounded but that went too far over my head to figure out.  I can see where ti would be extremely handy to anyone being able to hover over a filename on a site and see the "wiki" for that file would probably save me downloading a bunch of stuff that isn't even what it appears to be at first glance.  And since it would only appear as a pop-out display when hovering over the filename itself, it would not take up any room on the page hosting the file.  I just have to figure out how to edit that window that opens when you hover over a file and see if it can be made big enough to hold enough information to matter.  :)

This was a Fun Excursion and i more than appreciate all the input from everyone! 

Many Thanks to everyone  :Thmbsup: :D
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 17, 2015, 12:27 AM
Sounds like a meeting of AA :)

"My name is 4wd and I am a download whore."

Well I used to be but I never bothered keeping info on links/pages where I got downloads, just looking at the file name as was downloaded is usually enough to tell me what the file/program was for or did.  The few times my memory failed me it was always a simple matter to look at the properties of either the installer or installed program to give me enough info to find it again.

I look at tackling a search engine as an exercise in lateral thinking rather than a chore ... I always find something interesting even if it's not what I was originally after.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: TaoPhoenix on June 17, 2015, 12:40 AM
I look at tackling a search engine as an exercise in lateral thinking rather than a chore ... I always find something interesting even if it's not what I was originally after.

Well, lately the engines are getting pretty bad about ignoring stuff in "advanced search". I used to get results by building clever queries purposely designed to only return like 5 results.

Now the engine goes "ho hum, include exact phrase? Nah. Let's just give you stuff. Filenames? Like 'StrmExt'? Nah, I'm sure you meant 'Storm Extension' so let's give you a lot of building contractor sites!"

>:(
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: 4wd on June 17, 2015, 01:37 AM
Let's just give you stuff. Filenames? Like 'StrmExt'?

They must like you, top result in Google, Yahoo, and StartPage was StrmExt.dll on x64 Windows for me, (not bad considering I'd never used Yahoo before).

Here's a Paste to ADS version in Powershell (needs v3+), requires no external programs and trims the URL to the last occurrence of '/':

Code: PowerShell [Select]
  1. #############################################################################
  2. ## Paste2ADS.ps1
  3. ##
  4. ## Uses: Get-Clipboard by Lee Holmes (http://www.leeholmes.com/guide)
  5. ##############################################################################
  6.  
  7. <#
  8.  
  9. .SYNOPSIS
  10.  
  11. Retrieve the text contents of the Windows Clipboard and write to file ADS
  12.  
  13. .EXAMPLE
  14.  
  15. PS >Paste2ADS.ps1 somefile.exe
  16.  
  17. #>
  18.  
  19. param (
  20.   [string]$file = $(throw "Paste2ADS.ps1 <file>")
  21. )
  22.  
  23.  
  24. function Get-Clipboard
  25. {
  26.   Set-StrictMode -Version Latest
  27.  
  28.   PowerShell -NoProfile -STA -Command{
  29.         Add-Type -Assembly PresentationCore
  30.         [Windows.Clipboard]::GetText()
  31.   }
  32. }
  33.  
  34. $clip = (Get-Clipboard)
  35.  
  36. $count = [regex]::matches($clip,"/").count
  37. if ($count -gt 2) {
  38.   $text = $clip.SubString(0, $clip.LastIndexOf("/") + 1)
  39. }
  40.  
  41. Set-Content -Path $file -Value $text -Stream 'URL'

It's assumed to live in C:\Scripts otherwise edit the Paste2ADSps_install.reg file to reflect wherever you've put it.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: TaoPhoenix on June 17, 2015, 08:48 AM
Let's just give you stuff. Filenames? Like 'StrmExt'?

They must like you, top result in Google, Yahoo, and StartPage was StrmExt.dll on x64 Windows for me, (not bad considering I'd never used Yahoo before).

Bleh! Serves me right for "making up conceptual examples"! Just saying that I'm getting a lot of non-exact matches even on Advanced Searches.

Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on June 20, 2015, 07:20 PM
"         The few times my memory failed me it was always a simple matter to look at the properties of either the installer or installed program to give me enough info to find it again. :tellme: :'( "

BUT  You are a YOUNG "Whipper-Snapper" 4WD  Look at me  That is a Real Pic!  (well... Not the sword part :)  ) :D
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on July 13, 2015, 01:55 PM
Still watching this thread and hoping someone has the perfect solution.  I found a way to display the data but not a way to get it there. 
The URL link can easily be stored in any one of the many Meta-data fields.  Then it is a simple matter to set Windows to display that field in the directory listing of the downloads folder. 
Editing Metadata seems to be a somewhat "limited" field as I have found very few editors (other than Windows itself, i can change the information in an existing meta data field like such as "subject" , put the URL in there and set the display to show "subject" for every file.  This would be an almost perfect solution to what I was trying to accomplish.
One of the problems remaining is how to get the contents of the Address bar into that field at the time of download.  Another is that I dont think it can be "active" such that it could be Clicked to return to the URL but maybe one of the metadata fields would even do that,  I have only had "subject" to work with so far.
Most of the editors are made for things like photography and music to get to those multitudes of other fields. 
If it is something i am going to have to do manually, i would prefer something as easy as right click, edit metadata field (?) where the ? is the field to be edited.
Sure is odd that so little use is made of these fields when they could provide so much information about a file that would remain hidden unless the user asked for it.
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: IainB on July 31, 2015, 05:51 AM
I've been reading this discussion on and off for a while, and it puzzled me. I just now read through most of it again, and I'm still puzzled. It seems unnecessarily complicated and too much like hard work.
The requirement seems to be:
When a file is downloaded, how to attach:

This is arguably a common problem that we might all face at one time or another, and I have certainly found it to be a recurring problem in my experience, and it can be addressed by realising that it doesn't really need any more data capture than can be automatically captured by default at download time, and it is apparently not necessary to attach the URL metadata to the actual file.
For example, I started off with a sort of "lazy man's minimalist approach" with the following steps:

Usually, I would not be too interested in subsequently tracking back any document files to the source, but application installer files were/are a different matter, so I am quite rigorous about the above steps.
My methods have changed somewhat since 2008 when I started to progressively learn how to use MS OneNote. I now maintain and update brief installation notes in MS OneNote for when I install applications/updates from downloaded application installer files, and - where space is not at a premium - those notes may even include a duplicate copy of the application installer files used, thus making for a self-contained set of notes and source files, in OneNote, on OneDrive, so that I could access those notes/files from any client PC. This gives ready access to acquired knowledge and a second backup contingency (I periodically back up all files to a separate primary backup device anyway).

Here's a screen clip of xplorer² showing some application installer files in my archives, displaying the extent of the metadata, most of which - and often already including data in the Comment field - is automatically captured at download time. The download URLs are stored in the readily accessible and backed up, separate C:\...\Download\Downloads.txt log file(s), with filename and date keys, if and when they are needed.

[ You are not allowed to view attachments ]


By the way, I quite often find that I want to access a blog post, or download a file - e.g., an update of an application installer file, a Userscript, or a document file) from a website or webpage which is defunct or has gone 404 (no longer exists) since I last accessed it. At these times, I can invariably get ready access to this missing data using the button for the Open current page in Wayback Machine (a Firefox extension).   :Thmbsup:
Title: Re: Maxthon Browser Users: Maybe one of you has already solved this
Post by: questorfla on August 06, 2015, 04:01 PM
to be honest i am now looking closely at what is provided by MS new EDGE browser.  I have to study the instructions more as i juts got Windows 10 loaded and still have several systems left to do.  But it seems to have a lot of what I wanted built it .. MAYBE