SpecificWdx
Moderators: Hacker, petermad, Stefan2, white
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
SpecificWdx
Hi,
Starting from this thread, I'm making a new wdx plugin
it will be able to -calculate- / deals with wdx informations
Number of field is dynamic (depending of the ini file)
return type of the field is also dynamic
content of the field depends on other wdx values and on the action the user wants to make
For the moment there is
For numbers: > Min / Max / is equal
for string: > is equal / concatenation
the plugin internally compares 2 possibly different wdx fields from the same wdx (it is planned to have 2 separate wdx)
any other specific need?
Starting from this thread, I'm making a new wdx plugin
it will be able to -calculate- / deals with wdx informations
Number of field is dynamic (depending of the ini file)
return type of the field is also dynamic
content of the field depends on other wdx values and on the action the user wants to make
For the moment there is
For numbers: > Min / Max / is equal
for string: > is equal / concatenation
the plugin internally compares 2 possibly different wdx fields from the same wdx (it is planned to have 2 separate wdx)
any other specific need?
TC#88260 -
Re: SpecificWdx
Why not adding
Numeric
simple math expression like * + - / % frac
toString, toString with format
String
Substring, RegexReplace
Ad conditional statement If exrpression THEN .... ELSIF exrpression THEN ... ELSE .... ENDIF
ALL
isNull > < !=
String
RegexMatch
...
Numeric
simple math expression like * + - / % frac
toString, toString with format
String
Substring, RegexReplace
Ad conditional statement If exrpression THEN .... ELSIF exrpression THEN ... ELSE .... ENDIF
ALL
isNull > < !=
String
RegexMatch
...
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
% means modulo,right ?simple math expression like * + - / % frac
frac means ? (fraction ?), example of "value" please
=>easy to add
numeric :
->toString : what's the use in a wdx?
-> toString with format, returning values from wdx should be tested if it matches the -desired format- then be translated. can be hard toadd,what's the use?
String :
->Substring: easy to add
RegexpReplace : have to see how it can be done (or how I should implement it)
I have already implemented comparison with a -fix value-
so isNull ; < ; > ; != <=> already done
String:RegExpMatch :will depend on the regexp stuff I use but should be doable

TC#88260 -
% is modulo (it could also be fine to add ceil() floor() and round() )franck8244 wrote: % means modulo,right ?
frac means ? (fraction ?), example of "value" please
=>easy to add
numeric :
->toString : what's the use in a wdx?
-> toString with format, returning values from wdx should be tested if it matches the -desired format- then be translated. can be hard toadd,what's the use?
String :
->Substring: easy to add
RegexpReplace :....
Frac is fraction you can give a look here
Format allow to have number with Zero (Left/Right) ex +99900.000999
Say you must have the Sign and minimum of 2 digit before . and from 3 to 6 digit after. (E impose you Engineer notation and S scientific ...)
toString or implicit toString is for combination of numeric (this is probabli in )
ex width@img.wdx & " x " & height@img.wdx can return "1024 x 768"
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
ceil / floor / round : OK (return willbe ft_numeric_32)
for FRAC and format , the return value would have to be ft_string
Possibly wrong in sorting ...

for FRAC and format , the return value would have to be ft_string
Possibly wrong in sorting ...
Do you want me to replace TC processing ?toString or implicit toString is for combination of numeric (this is probabli in )
ex width@img.wdx & " x " & height@img.wdx can return "1024 x 768"

TC#88260 -
It could be fine to do really more..... (as almost all calculation and expression are missing in standard TC )franck8244 wrote:Do you want me to replace TC processing ?toString or implicit toString is for combination of numeric (this is probabli in )
ex width@img.wdx & " x " & height@img.wdx can return "1024 x 768"
In fact, if you have condition in order to calculate your output field, you can build dedicated column with more than one wdx info.
use tridwdx to find real extension.....
Code: Select all
[DedicatedSize]
if [match0.ext@trid.wdx] in ("OGG", "MP3", "WAV", "FLAC", "WV") then
FIELD = "Duration: " & [len@Music.wdx]
elsif [match0.ext@trid.wdx] in ("PNG",""JPG", "GIF", "BMP", "TIFF", "PSD") then
FIELD = "Max img Size: " & Max([width@Image.wdx],[width@Image.wdx] )
if ( [AspectRatio@Image.wdx] > 1 ) then
FIELD = FIELD & "on width"
else
FIELD = FIELD & "on height"
endif
FIELD = FIELD & "(" & frac([AspectRatio@Image.wdx],16) & ")"
else
....

- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
Code: Select all
[DedicatedSize]
if [match0.ext@trid.wdx] in ("OGG", "MP3", "WAV", "FLAC", "WV") then
FIELD = "Duration: " & [len@Music.wdx]
elsif [match0.ext@trid.wdx] in ("PNG",""JPG", "GIF", "BMP", "TIFF", "PSD") then
FIELD = "Max img Size: " & Max([width@Image.wdx],[width@Image.wdx] )
if ( [AspectRatio@Image.wdx] > 1 ) then
FIELD = FIELD & "on width"
else
FIELD = FIELD & "on height"
endif
FIELD = FIELD & "(" & frac([AspectRatio@Image.wdx],16) & ")"
else
but it can be a pain in specific.wdx ...
TC#88260 -
I do note use ScriptContent plugin for 2 reasons :franck8244 wrote:This would be easily done with scriptcontent plugin + the use of wdx_proxy
- If you want to create additional columns of the plugin then create a copy of a plugin directory. Rename wdx file, do not rename ini file. Register new wdx as new plugin and add a new column. even if 10 columns seems to be a lot, it could be beter to have autoload of all scripts in script folder and have dynamic colum names.
- no way to have object across calls and get init, StartMultifile, EndMultifiles and unload scripts.
-- edited --
Where is wdx_proxy ?? I did not find it in your website @ free.fr . Is it only embedded in file comparer ??
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
2quote
Currently you can find it inside Comparer zip file.
It will be included as DLL in SpecificWdx package IMHO.nsp wrote:Where is wdx_proxy ?? I did not find it in your website @ free.fr . Is it only embedded in file comparer ??
Currently you can find it inside Comparer zip file.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
2nsp
The problem is that I would have to write all the script interpreter stuff...
the current version of Specific.wdx can be found
here (since early this morning)
wdx_proxy is also included in the archive.
This proxy was made -mostly for a colleague at first- then fenix_production was interested in using it for his tool, so I modified it - a bit
-
There is no complete documentation for wdx_proxy yet. If you are interested I can send you some (function prototype / order to use them...)
The problem is that I would have to write all the script interpreter stuff...
the current version of Specific.wdx can be found
here (since early this morning)
wdx_proxy is also included in the archive.
This proxy was made -mostly for a colleague at first- then fenix_production was interested in using it for his tool, so I modified it - a bit

There is no complete documentation for wdx_proxy yet. If you are interested I can send you some (function prototype / order to use them...)
TC#88260 -
Thx !franck8244 wrote:2nsp
The problem is that I would have to write all the script interpreter stuff...
...
There is no complete documentation for wdx_proxy yet. If you are interested I can send you some (function prototype / order to use them...)
I've done some test, it is fine for simple expression i think it could be easier for user to write directly Max( [width.pixel@Img.wdx], [height.pixel@Img.wdx] ) than using decomposed parameter at least for version 2

It is always easy to use plugin name instead of P1,P2,P3 (except for test)....
I thing a god idea could be to use "Modified" version of SSeting (From SSeting) to populate your expression. ===> in this case the parsing could be done in the configuration app.
(info: SuperWdx is in Delphi, you can probably get SSeting sources
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
SSetings (Sorry for the typo) is the SuperWdx-Settings toolfranck8244 wrote:What is SSettings , where can I find it...
You can find a version in totalcmd.net Super Wdx Source
... as super wdx evolved a little lately (Dec 2008), you can ask for source to Pavel aka D1P by mail it you are interested...
Have good fly !!!