Is it posible to have a column show 2 dfiferent things?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
kunkel321
Junior Member
Junior Member
Posts: 18
Joined: 2012-06-18, 21:36 UTC
Location: United States

Is it posible to have a column show 2 dfiferent things?

Post by *kunkel321 »

Hi again,

I made myself a column to show Dimensions of an image file (when in Details View).
Image: http://i.imgur.com/OwrYS.png

Does anyone know if it's possible to have the custom [=imgsize.Width]*[=imgsize.Height] as the default, but if a file doesn't have that information, then it will instead show the Size of the file instead?

Like
IF [=imgsize.Width] =/= 0, THEN [=imgsize.Width]*[=imgsize.Height], ELSE [=tc.size]
User avatar
nsp
Power Member
Power Member
Posts: 1956
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Is it posible to have a column show 2 dfiferent things?

Post by *nsp »

kunkel321 wrote:Hi again,

I made myself a column to show Dimensions of an image file (when in Details View).
Image: http://i.imgur.com/OwrYS.png

Does anyone know if it's possible to have the custom [=imgsize.Width]*[=imgsize.Height] as the default, but if a file doesn't have that information, then it will instead show the Size of the file instead?

Like
IF [=imgsize.Width] =/= 0, THEN [=imgsize.Width]*[=imgsize.Height], ELSE [=tc.size]
If you do nt use 64bit you can use superwdx[\B] and create a filtered column that show for image file the dimension of the size for other file type
User avatar
petermad
Power Member
Power Member
Posts: 16152
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

This should do it:

Code: Select all

[[=imgsize.Width"*"][=imgsize.Height][=tc.size]]
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Post by *louwin »

petermad wrote:This should do it:

Code: Select all

[[=imgsize.Width"*"][=imgsize.Height][=tc.size]]
Sorry, that didn't work :(

Unless I am doing something wrong. :?

I just replaced my "Size" field in Custom Columns with your string :(

It just shows the size for picture AND non-picture files.... :(
There are 10 types of people in the world,
Those who understand binary and those who don't.
User avatar
petermad
Power Member
Power Member
Posts: 16152
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Sorry, it doesn't work - my column was just too narrow, so it looked like it worked.

I do see the image dimensions for images, but I also always see filesize in that column.

So you can have it showing width*height and filesize at the same time, leaving out width and height if not applicable, but a space or two will help:

Code: Select all

[=imgsize.Width"*"][=imgsize.Height][="  "tc.size]
http://madsenworld.dk/tcmd/photocolumns.png
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
kunkel321
Junior Member
Junior Member
Posts: 18
Joined: 2012-06-18, 21:36 UTC
Location: United States

Post by *kunkel321 »

Thanks all, for the replies. I'm definitely checking out the Super plugin--though it looks a bit more complicated than the stock TC setup...

Thanks also, Petermad, for the tip of nesting the extra characters in the brackets. Based on that and your suggestion, I came up with

Code: Select all

 [=imgsize.Width" x "][=imgsize.Height"                                                                                            "] [=tc.size.bytes] 
(if you can't tell on your screen, there is a long string of empty spaces)


For image files, it shows the Dimensions, then just pushes the Size way over. Unfortunately if does show the "..." which is sortof annoying. Still a workable solution though. :)
Image: http://i.imgur.com/5yxcu.png

Back on the SuperDWX, do you guys know if it is okay with Vista and Win 7 32 bit? I see a note on the page that it was discontinued in 2005, and has long-standing bugs.

EDIT: Interesting note: Sorting by this column has the effect of grouping by All Image Files, then All other files.
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Post by *louwin »

petermad wrote: I do see the image dimensions for images, but I also always see filesize in that column.

So you can have it showing width*height and filesize at the same time, leaving out width and height if not applicable, but a space or two will help:

Code: Select all

[=imgsize.Width"*"][=imgsize.Height][="  "tc.size]
I must be doing something wrong as I just get size for all kinds of files. :(

Is there something I must do to activate the "imgsize" variables? :?
There are 10 types of people in the world,
Those who understand binary and those who don't.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2louwin
Are you sure you have proper plugin?
http://www.totalcmd.net/plugring/wdx_ImgSize.html
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Post by *louwin »

Wouldn't install the plugin, says my system has missing DLL's? :(

It's all too hard, sorry :(
There are 10 types of people in the world,
Those who understand binary and those who don't.
User avatar
nsp
Power Member
Power Member
Posts: 1956
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

SuperWDX is Super

Post by *nsp »

kunkel321 wrote:.....
Back on the SuperDWX, do you guys know if it is okay with Vista and Win 7 32 bit? I see a note on the page that it was discontinued in 2005, and has long-standing bugs....
The latest official version is 2.2 but you can find a newer version 2.3b2 with less bug here http://www.tckb.ru/wiki/SuperWDX (even if it is is russian, use chromium or google translate to have an idea of what is written ).

I use every day SuperWdx because it offer a unique feature Filtering file information for the same column and it is stable enough for my uses. The plugin is not maintained anymore, it works fine on windows seven but i do not install the plugin in "program files" or any protected folder !

You must be careful with some time consuming wdx plugin on big files or on folders. To prevent this i always also add a specific <DIR> part in each column. I do not use on demand or background field on standard column. I also always unload all plugins when i install new ones !

The help and the faq in the provided chm is well written and gives you a lot of hints !

I use it very often for the sizing problem (for music it is duration + quality, image dimension, zip expanded size, ... )

The best could be to have a kind of macro language for column definition but TC do not offer it :(
User avatar
petermad
Power Member
Power Member
Posts: 16152
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2louwin
Wouldn't install the plugin, says my system has missing DLL's?
There are other plugins that provide height and width of images:

http://www.totalcmd.net/plugring/image.html
http://www.totalcmd.net/plugring/shelldetails.html (if you are using Windows 7)
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
kunkel321
Junior Member
Junior Member
Posts: 18
Joined: 2012-06-18, 21:36 UTC
Location: United States

Post by *kunkel321 »

Hi again Power Members. Thanks for helping us noobs :)

NSP, Do you use Super for image Dimensions? What image plugin do you use with it?

As you can see from http://i.imgur.com/YnpJQ.png (I think) the Super Column should be working for png and jpg, but it does not.
User avatar
nsp
Power Member
Power Member
Posts: 1956
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

kunkel321 wrote:HNSP, Do you use Super for image Dimensions? What image plugin do you use with it?

I use old plugin called imageInfo http://www.totalcmd.net/plugring/wdx_image_info.html
---- edited ----
ImgSize.wdx is also working in my side. I always tick the "Show-Error" option and during setup i use debug=1 in super_wdx.ini
kunkel321
Junior Member
Junior Member
Posts: 18
Joined: 2012-06-18, 21:36 UTC
Location: United States

Post by *kunkel321 »

Hmm... Strange, it is working now.
You mentioned before about removing all your plugins and re-adding them when you re-install Super.

I removed everything, then from TC Options, I added Super, then from the Super Settings I added the others (before adding them via TC). That seemed to work. Strangly, I tried to re-create getting it to NOT work--so I could see what was causing the problem--but I was unable to reproduce the non-functionality :? So I'm not 100% sure what fixed it....

I also see that the ImagesWDX supports "jpeg" which ImgInfo does not. So that's cool. 8) I couldn't see how to add stock info (such as Size) directly from TC, so I used the ShellDetailsWDX plugin... Is that what you do?

Thanks again for the support :)

http://i.imgur.com/SDurW.png
User avatar
nsp
Power Member
Power Member
Posts: 1956
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

kunkel321 wrote:.... I used the ShellDetailsWDX plugin... Is that what you do?
In fact when i install or remove some plugin from TC i use an internal button that only onload from memory all plugins. The command is : cm_UnloadPlugins.
for tc fields, i use filesys plugin i rename filesys.wdx to tc.wdx and only install it in super_wdx folder and add it in sseting.
Post Reply