SendtoTC - Easy access to TC from Explorer. + Autoit source

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
magz
Junior Member
Junior Member
Posts: 85
Joined: 2006-11-14, 10:47 UTC
Location: Norway

SendtoTC - Easy access to TC from Explorer. + Autoit source

Post by *magz » 2015-10-10, 07:56 UTC

SendtoTC v1.01b

Main window if ran without parameters:
Image: http://picload.org/image/palpawi/sendtotc001.jpg
If you click any of the icons, this menu will pop up:
Image: http://picload.org/image/pacapwc/sendtotc004.jpg

When in explorer, it enables displaying the path of the selected file/folder in Total Commander through Sendto
Or it will launch Total Commander with the explorer window if it's not running, but for determining TC source/target or the 4 explorer window options Total Commander must be running.
It's for all of the occasions when you have lost your way into explorer and you miss Total Commander, and thus feel sad, which is only natural.

For the obscure occasions where you are in explorer and want to open another
explorer window with Total Commanders source, target, left or right window, that is possible as well.

Running the script with no parameters will run the graphical user interface for making links from Sendto
You could drag & drop it to your Total Commander toolbar (no parameters then) if you want to have easy access to add/remove the links from sendto
Or let the script add itself to the Total Commander toolbar by clicking "TC button"
After generating the links with the GUI the chosen of the following links to Total Commander should appear in Windows Sendto:
Open path in TC's left window
Open path in TC's right window
Open path in TC's source window
Open path in TC's target window
Open TC's source path in Explorer
Open TC's target path in Explorer
Open TC's right windows path in Explorer
Open TC's left windows path in Explorer

Be advised that to determine your TC's source path the script will make Total Commander copy it's source path to the clipboard. It's a bit dirty, but the only way I know how to.
As Total Commander only accepts parameter inputs for left and right all the other 6 options should be considered experimental.

I recycled the TC button adding functions from my tcLinkSel script
Image: http://picload.org/image/palpaww/sendtotc002.jpg

If you tick the checkbox for "Add all buttons" in the TC button maker
then all of the above will be made as buttons at the selected toolbar.
This will have no effect on the "To clipboard" button however,
You may opt out on .lnk files made by ticking off checkboxes.
You may choose other icons embedded in the exe file by clicking the icons.
Or load a .ico/.dll/.exe with the icon you prefer from file.

I also recycled the ASCII art:

Code: Select all

	q@@@B@@@B@7.:ii7:i;:i;:i;::.r@B@B@B:
	B@MBBMMMM@Br ::i.    BB@B@r  rB@MMM@Bq
	@MMM@MMMM@@r.;: .,   B@B@B7 .r@BMMMM@BBr
	BMO@@MMMM@B7 ..,    .@B@B@r. 7B@MMMBM@Ou
	@MMM@MMMBB@7 ..  .,  M@B@B7..7@BBMMMMBZ7
	@MMBBMMMM@B7    .. .i@B@@@L  .B@MMMMM@N7
	@MMB@MMMMM@i      :..u5UF5   :@@MMMMMBE7
	@MMMM@B@B@BBL7LrLjvvri:::i:r2MB@MMMMM@N7
	@MMMBB@B@@@B@B@B@B@B@B@@@@@B@B@B@BBMBBE7
	BMM@B@B@@@@@B@B@B@@@@@B@B@B@B@B@B@BMM@0v
	@MMBM                            v@BBBE7
	BMM@M  SendToTC v1.01  10.10.15  iB@M@Nv
	@MBBM SBBMBMBMBMBMBMBMBMBMBMBB@M i@BBBE7
	BBM@B                            7B@M@qv
	@MBB@  A Total Commander script  7@BBB07
	BMM@M P@B@B@B@B@B@@@@@@@@@B@B@B@ i@@M@0v
	@MBB@                            7@BBBE7
	BMM@B  written by Magz           7B@M@0v
	@MBBB NB@@@B@B@@@@@B@B@B@B@B@@@B i@BBBZ7
	B@B@M                            rB@B@07
	@B@@B                            r@B@BOv
	0@@@B@B@B@B@B@@@@@B@B@B@B@B@B@B@@@@@B@P2
	uXXSqPqP0PNP0PNqNP0q0q0P0qNP0PPFS1ku.
Download links:

SendtoTC X86 & X64 Binaries (not compressed)
SendtoTC X86 & X64 UPX compressed binaries
Autoit source code

I hope someone finds this useful.
I almost added opening cmd prompts with TC's source, dest, left or right window as start paths as well, but figured there would be little interest in that.
Last edited by magz on 2015-10-10, 23:02 UTC, edited 2 times in total.

User avatar
magz
Junior Member
Junior Member
Posts: 85
Joined: 2006-11-14, 10:47 UTC
Location: Norway

Post by *magz » 2015-10-10, 20:12 UTC

There was some issues displaying the embedded icons for the first build. So I uploaded a fix for that now. Without editing the version nr. As it was more of a compilation error type of thing. So it still says v1.00, but if you downloaded before I posted this message, you should download it again.

Edit: hmm... actually.. on my system there are still issues displaying all the icons today, but yesterday it was fine.
I'm guessing it could be due to me cramming 83 icons in the executable.
I'll trie to moderate the selection.

User avatar
magz
Junior Member
Junior Member
Posts: 85
Joined: 2006-11-14, 10:47 UTC
Location: Norway

Post by *magz » 2015-10-10, 21:20 UTC

v1.01 is now up.
Featuring less icons. (56 instead of 83)
Shows ok on my system again now.

User avatar
magz
Junior Member
Junior Member
Posts: 85
Joined: 2006-11-14, 10:47 UTC
Location: Norway

Post by *magz » 2015-10-10, 23:00 UTC

So, as I realized I must've been temporarily insane in embedding so many icons into the binaries I have now managed to trim it down to a selection of 30 in v1.01b which I just uploaded.
Selection before vs: selection now

User avatar
magz
Junior Member
Junior Member
Posts: 85
Joined: 2006-11-14, 10:47 UTC
Location: Norway

Post by *magz » 2015-10-10, 23:36 UTC

Seems it was the UPX compression that messed up the icons.
So I will have to experiment with compression types before providing a packed executable. The regular binaries should work.

Post Reply