Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
Download Sort for K-M
Posted by: CaptnBlack
Date: June 11, 2005 11:41PM

Just wondering has anyone been able , or even attempted to duplicate any of the features found in the Firefox extension "DownSort" ?
I'm particularly interested in some sort of auto-image saving.
Any ideas would be most welcome.

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: jsnj
Date: June 12, 2005 07:09AM

You can specify the download directories for the context menu items: Save Image As, Save Link As, and Save Page As from Tools - Download Options. Anything more extensive than that isn't available unless you use an external download manager.

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 12, 2005 10:21AM

I'm aware of the built in download features of K-M, I was looking for a way to automate the process a little more.
For example auto creation of sub folders.
I really didn't want to resort to a download manager.
I thought there might be a way to enhance downloading with macros and/or batch files.
Here's a batch fie I use with Opera to auto save images to a dated folder:

:MKDIR
IF NOT EXIST E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%
MKDIR %date:~4,2%-%date:~7,2%-%date:~10,4%
GOTO START

confused smileyTART
i_view32.exe /clippaste /convert=E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%\%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%.jpg
IF errorlevel 1 GOTO MKDIR
GOTO :END



:END
ECHO Quitting


Isn't there some way to use something like this in K-M ?
I'm not as familiar with K-M as I am Opera so I don't know the best way to go about something like this.
Thanks

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 13, 2005 12:14AM

Is there any way to get the current image ( that's loaded in a new layer ) to the clipboard without having to rightclick and select "Copy Image" ?

If there is I could use Strokeit to make image saving completely automatic with my batch file.

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: rmn
Date: June 13, 2005 04:12AM

I'm not very familiar with StrokeIt, but can it send ID_* commands (specifically, ID_COPY_IMAGE_CONTENT) to K-Meleon?

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 13, 2005 08:09AM

It can send window messages, but I don't think it could send an ID_* command.
If that command was bound to a hotkey, you could use the hotkey with Strokeit.
However I've already tried to add "ID_COPY_IMAGE_CONTENT" in my accel.cfg, but it doesn't work, I think I saw somewhere that you use a command to "Get" the image content, but now I can't for the life of me remember where I saw it, or exactly how to do it.

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: rmn
Date: June 14, 2005 08:14AM

Hm.. what about a macro like this? ::

download_sort {
id(ID_COPY_IMAGE_CONTENT);
exec("your-batch-file.bat");
}

I'm assuming that the transfer from clipboard -> file happens in the batch file (via another program, maybe).

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 14, 2005 11:37AM

Yes I use Irfan view to transfer the image from the clipboard, but I've found no way to get the image to the clipboard without rightclicking and select copy image.

Thanks for the help

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 14, 2005 10:34PM

Well I got this macros to work:

download_sort {
id(ID_COPY_IMAGE_CONTENT);
exec("E:\\My Pics\\imagesave1.bat");
}

When I added this to my menus.cfg under the Image section:

macros(download_sort)

However it also creates a subfolder in my K-Meleon directory as well as in the intended directory, it does save the images to E:\My Pics\ "dated sub" but not in the
K-Meleon\"dated sub".
Does anyone know how to prevent the subfolder from being created in my K-Meleon directory ?

Thanks

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 14, 2005 11:07PM

I figured it out, I had to hack my batch file to work with Opera, but it works without the hack in K-Meleon.

If anyone is interested here's the batch file that works for me:

:MKDIR
IF NOT EXIST E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%
MKDIR E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%
GOTO START

confused smileyTART
i_view32.exe /clippaste /convert=E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%\%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%.jpg
IF errorlevel 1 GOTO MKDIR
GOTO :END



:END
ECHO Quitting

Also if you attempt to use this you will have to install Irfanview, and copy "i_view32.exe" to your "\Windows" directory.
Of course it goes without saying you can customize the batch file to use any directory you want.
I'm not sure if it'll work on any other windows OS except XP either.

Thanks for the help in sorting (pun intended... lol) this out.

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 14, 2005 11:24PM

Sorry, after futher testing it only partially works.
So I guess it's a no-go.

Options: ReplyQuote
Re: Download Sort for K-M
Posted by: CaptnBlack
Date: June 15, 2005 06:03PM

Found my mistake, have to use double quotes in the MKDIR part to create the folder in the right place.
This works:

:MKDIR
IF NOT EXIST E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%
MKDIR "E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%"
GOTO START

confused smileyTART
i_view32.exe /clippaste /convert=E:\My Pics\%date:~4,2%-%date:~7,2%-%date:~10,4%\%TIME:~0,2%-%TIME:~3,2%-%TIME:~6,2%.jpg
IF errorlevel 1 GOTO MKDIR
GOTO :END



:END
ECHO Quitting


Sorry for all the useless posts I made, hope someone else can benefit from my mistakes.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.