Copy text of only certain columns

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Copy text of only certain columns

Post by *white »

petermad wrote: 2022-07-19, 19:49 UTC Wouldn't it rather be CM_COPYFILEDETAILSTOCLIP 32767
And 2-15 would be CM_COPYFILEDETAILSTOCLIP 32766

65534 would give 2-16
filename and extension: 1
extra column 1: 2, all extra columns: 2
extra column 2: 4, all extra columns: 6
extra column 3: 8, all extra columns: 14
extra column 4: 16, all extra columns: 30
extra column 5: 32, all extra columns: 62
extra column 6: 64, all extra columns: 126
extra column 7: 128, all extra columns: 254
extra column 8: 256, all extra columns: 510
extra column 9: 512, all extra columns: 1022
extra column 10: 1024, all extra columns: 2046
extra column 11: 2048, all extra columns: 4094
extra column 12: 4096, all extra columns: 8190
extra column 13: 8192, all extra columns: 16382
extra column 14: 16384, all extra columns: 32766
extra column 15: 32768, all extra columns: 65534

(add 1 to include filename and extension)
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copy text of only certain columns

Post by *petermad »

I see - thank you :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Wojtek
Junior Member
Junior Member
Posts: 65
Joined: 2010-02-07, 11:58 UTC
Location: Germany

Re: Copy text of only certain columns

Post by *Wojtek »

Alright, now I have a button to copy up to 23 columns:
cm_CopyFileDetailsToClip 16777214

and here's a table with the calculation steps:
http://w-k.bplaced.net/public/greenshot_xl.png

So far so good...
The command even ignores "non-present" columns (I mean if there are only 2 columns it doesn't fill the result with dozens of tab stops). Nice.
Horst.Epp wrote: 2022-07-19, 18:29 UTC You simply make a button which shows as drop-down menu
and contains your different configs.
Okay, and how would I do that?
http://w-k.bplaced.net/public/greenshot_tc3.png
Asus Maximus VIII Hero · Win10 Pro x64
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K

Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U

TC 11.02 32-bit #347308
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Copy text of only certain columns

Post by *Horst.Epp »

If you add a .bar file as command there is the option "Show as menu"
Later you can select "Edit linked button bar..." in the context menu of this button.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Copy text of only certain columns

Post by *Stefan2 »

Wojtek wrote: 2022-07-20, 06:16 UTC
Horst.Epp wrote: 2022-07-19, 18:29 UTC You simply make a button which shows as drop-down menu
and contains your different configs.
Okay, and how would I do that?
http://w-k.bplaced.net/public/greenshot_tc3.png

For example take a look there >> viewtopic.php?p=344803#p344803

and scroll down to "Create new own button bars or drop-down sub-menu"




More collected info at >> viewtopic.php?f=3&t=52425




 
Post Reply