Инструменты пользователя

Инструменты сайта


foobar2000:manual:elplaylist_tutorial

Manual for ELPlaylist v0.6.6.0beta

foo_uie_elplaylist.dll
for foobar2000 v0.9.5.1 +, Columns UI0.3 +, Windows Vista + (Tested on Windows Vista only)

SDK version

      foobar2000 :2008-11-29 
      cui:6.3 

Playlist view for a SCPL like Columns UI A group format displays each track in the playlist list and set the grouping of elements.

When you want to change the settings menu,right-click Settings … Please call the setting dialog. To edit the settings,Titleformat(TF) knowledge is required. About Titleformat Please refer to the description of the other sites separately.

Setting Items

[script]

Customize your drawing inside the lines of the list in particular. title format script presets:to control the drawing to describe the TF. Multiple settings can be registered.

Track list

Draw the line to control the full TF.

Group header

Group header to control the drawing of the TF.

Per Second

To control the line drawn to the track is updated every second TF.(Now playing info you can use the TF system.)

Pop-up window to control the drawing of TF. Popup(Track) will be executed before. Extended field most likely will.

Unit to control the drawing of pop-up window full of TF. Popup group header when each track is performed in the group. Extended field most likely will. The origin of Boppuappu or group header please send trucks to determine the %el_is_group%.
Also,if the group header,%el_item_index% Please draw the position shift.
[Note]:Popup after updates have been implemented in the version from the version that is not implemented, Popup dialog to open the default will no longer have anything Titleformat is reset by design.
In this state,and to save the settings,Popup will not appear on anything.
Graphical Browser Popup features are quite helpful. If you have problems,Un.

[style]

custom background colour:

Specifies a custom background color.

total:

Specifies the background color of the whole.

odd item:

Specifies the background color of odd.

even item:

Specifies the background color for even rows.

selected item:

Specifies the background color of the selected row.

playing item:

Specifies the background color of the track.

selected playing item:

Specifies the background color of the selected?Katsu track.

odd and even item for the right padding and left padding can be drawn in the range.

odd and even are calculated by the list index:
on when the odd / even determine the line number of the list.
When off,decide the order of the group.

? To see the changes on the character,script editing only.

default font ...:

Please specify the default font.

pseudo transparent:

Make a pseudo-transparent background. I tend to be heavily processed.
(If severe,may be better to narrow the viewing area.
Without care it uses to optimize the author???)

Enable Visual Style:

The background of each line and automatically draws VisualStyle. Primarily for Windows Vista.
After drawing a custom background colour,title format script will be drawn before the evaluation.
Color of the text is not changed automatically.

scrollbar:

Visibility of the scroll bar settings:default(auto show / hide toggle) / hide(always hidden) / show(always), Sets the amount and the school(0 = system default).

[grouping]

And customization of the main grouping,the list can be customized for multi-line display.

Group by:

multiple settings can be saved as a preset.

Group format:

Grouping for each track describes the Titleformat.
TF treats it as a group have the same stretch of track was evaluated as a result.
group format but the same result, leaving tracks on a playlist that is treated as different groups.
«|||» by splitting the group format, and can be configured to hierarchically group.

Example:

%album artist%|||%album% 

Group that has a child group,there is a restriction that is not assigned a truck.
When you attempt to assign a track to such groups,Damigurupuhedda is inserted.
It is written in some detail at the end of this text.

Sort format:

In a playlist and then sort of write Titleformat to do.
sort run,do from the context menu.

[Note] not to run automatically is not the sort. 
Row height:

Listing 1 sets the height of the base line.

Row number of group header:

«row height» sets the height of the header unit of the group.
Titleformat is enabled. TF results are treated as numbers(0-16) should return.
Therefore the height of group header is always an integer multiple of row height (0-16 times) will.

[Note] Use the full first group,group row is evaluated. 
Minimum row number of group:

You can set the minimum number of rows in each group.
For example,you can use to secure a range of applications such as image display even fewer full album of the group.
Titleformat is enabled. TF as a result of the process must return 0 or greater.
Result of the grouping,if this setting is less than the number of tracks in the group,empty lines to insert the padding.

[Note] using the full top group,min item num will be evaluated. 
line is empty,Track list Titleformat at $enabledraw() unless you use the feature will be drawn off.
If you want to draw the line as well as other effective,$enabledraw(1) and,drawing on features to please. 
Track list Titleformat empty line will be evaluated with the full effect of the end of the group. 
Playlist filter:

enable playlist filter are on,the name of the playlist when switched to the group by preset playlists can be selected automatically. preset enable all playlists in the playlist all valid.
If you enable only on a given playlist name matches the preset effect.
If you disable on a given playlist name matches the preset is disabled.
preset priority determines the order of the list.

? The name of the playlist to be specified,«;» can be specified by separating them with more. TF or wild card is invalid.

Associated titleformat script name:

Titleformat script want to associate with this preset can be set only one name.

Enable Playlist filter:

playlist from the playlist filter name to enable you to select the group by preset automatically.

Prioritize Active Preset:

When you find the preset valid,it has been selected the first group by preset priority.

[field definition]

title format preprocessor:

Each Titleformat [Track list] [Group header] [Per Second] [Popup(Background)] [Popup(Track)] [row number of group header] [minimum row number of group] Before evaluating,field make the substitution. Titleformat each may be useful to refer to a common code set.

foo:C:\%album%.jpg and if you set, Titleformat of each %foo% is C:\%album%.jpg will be replaced.

[behaviour]

Click Action:

You can change the behavior when you click on a playlist.

Mouse Hover Action:

You can specify the operation to be executed when the mouse was stopped for a while.

Enable hover:

the mouse hover action on / off can be.

Delay:

Be suspended from mouse to mouse hover action to delay the execution.

Display only the focused group:

Displays only focus group. Other panel playlist(Graphical Browser or) to cooperate with the premise.

Collapse all groups when playlist is changed:

Close the group by default.

threshold of number of groups:

Close the group more than when this number is the number of the group.

Auto-collapse:

Close the group other than the focus group.
This option is on it,single click the group header only to see the full line / switch is to be hidden.
The group is automatically opened by clicking the action will not close.
If you want to follow the track Playback/Cursor Follows Playback Please use in conjunction with.

Allow collapsing group with no group header:

No group header(group row is a 0) want to close any group.

Disable focus change by single click at group header

When you click the group header and a single empty line,moving the focus of stops.

Update every second:

The Per Second to enable the track. More precisely,the update of the second drawing unit on / off only.

Move items with drag and drop:

Drag & Drop the selected tracks to be moved. But this option is off,[Alt] while pressing the Drag & Drop to move on.

According to key inputs,group format (%el_group_format%) and incremental search.
Search will be printed in the status bar.
Also,if you do not enter a valid key 5 seconds,automatically resets the search keywords.
See also Shotokattokibaindo.
IME in XP,then you'll also find support as possible in Japanese.
Vista in alphabetical (ASCII) may only search. (Originally run on Vista is still unconfirmed.)
If you want to search for Vista in non-ASCII,Ctrl-f in the dialog-based,so you can search,please use there.

Resize Quality:

Enlarge Image / You can set the quality scale. Anyway,if you want to increase the quality,HighQualityBicubic,keep the idea of then.

Context Menu:

Each Kontekisutomeyu(right-click menu) to display the items,you can set or not.

[misc]

Pop-up will run from mouse hover action.

Max size:

Maximum size of the popup. Can reduce the Titleformat.

Opacity of the popup. 0 fully transparent,so that you will not be displayed.

Fade-in:

Substitute the appropriate fade-in effect when it is displayed. I made a pretty decent.(Vista by default to fade it?)

Enable colorkey:

Set the color key. Transparent color is set. Same background color(default) if the background is transparent. However,take some anti-aliasing,not transparent to the stone.

Prevent going outside of display

Then out of view as possible to avoid the pop-up display. The non-multi-display support.

Max track num:

Popup(Track) limits the number of tracks to run. Popup the Titleformat script is Popup(Background) → Popup(Track) → Popup(Track) →??? And runs.

Additional sort format

Add to sort items in context menu to set the sort format. group by preset and are independent.

Hot Keys

List
Ctrl-c: Copy 
Ctrl-v: Paste 
Ctrl-x: Cut 
Ctrl-a: select all 
Ctrl-f: Find dialog (%el_group_format% can search) 
Ctrl-g: Go to the following groups 
Ctrl-b: Go to the previous group 
Delete: remove a track from the playlist 
Alt-[Up]/[Down]: Move the selected tracks ( "hide all items when playlist is changed" that is off) 

[Note]: foobar2000 body General→ Keyboard Shortcuts settings will take precedence.

# # [Alt] + Drag & Drop can also move the selected tracks. 

¦ Incremental Key input group format (%el_group_format%) can search incrementally.(enable incremental search is on only) The following shortcut keys are valid.

Ctrl-e: To reset your search. 
Ctrl-d: Find Next. (Ctrl-s is empty if I could???) 
Ctrl-r: Find previous. 

Main Menu

All panels may be affected. Show now playing: Scroll down to the track to be displayed. Show focused item: Scroll to display the full focus. Expand all groups: all groups to expand. Collapse all groups: Close all groups. Refresh: redraw raises explicitly.

? Extended Command Reference (Also here that says other than the default foobar body can use almost TF)

¦ ¦ ¦ ¦ ¦ ¦ fields ¦ ¦ ¦ ¦ ¦ ¦

%el_width%

Returns the width of the display area of the line

[Track list] [Group header] [Per Second] [Popup]

%el_height%

Returns the height of the display area of the line. (Line group %el_height%=%el_group_row%*%el_row_height% The full line %el_height%=%el_row_height%) $setworldtransform() affected.

[Track list] [Group header] [Per Second] [Popup]

%el_isplaying%

Whether Listening

[Track list] [Group header] [Per Second]

%el_selected%

Whether on the selected playlist

[Track list] [Per Second] Select group whether or not the click action of the group selected

[Group header]

%el_focused%

Focus on whether or not in the playlist

[Track list] [Per Second]

%el_row_height%

Returns the height of the basic line. (%El_height% in the group header row and different.)

[Track list] [Group header] [Per Second]

%el_group_row%

The group header row height %el_row_height% each minute or anything. Group header %el_height%=%el_group_row%*%el_row_height% relationship

[Track list] [Group header] [Per Second]

%el_item_count%

Number of tracks in the group

[Track list] [Group header] [Per Second] [Group row] [Min item num] [Popup]

%el_item_count2%

number of tracks in the group,including empty lines

[Track list] [Group header] [Per Second] Popup number of tracks to handle

[Popup]

%el_direct_item_count%

Number of tracks you directly assigned to the group.
Except in special cases,the group is a subgroup 0.
In addition,the group has no subgroups, %el_direct_item_count%=%el_item_count% and (should).

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_total_item_count%

The total number of tracks in Pureisurisuto

[Track list] [Group header] [Per Second] [Popup]

%el_item_index%

Index tracks in the group (counting from 0) line does not count up empty.

[Track list] [Per Second] [Popup]

%el_item_index2%

Index tracks in the group (counting from 0) line will also count up empty.

[Track list] [Per Second]

%el_total_group_count%

Number of groups (number of headers for all groups)

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_total_group_index%

Index group (index group headers on the list)

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_group_count%

Number of groups that belong to the same parent group

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_group_index%

Group index as seen from a parent group (counting from 0)

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_group_depth%

Depth of the current group (counting from 0)

[Track list] [Group header] [Per Second] [Group row] [Min item num] [Popup]

%el_subgroup_count%

Number of subgroups Is a group of children and grandchildren will not count the number of groups.

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_subgroup_count2%

The cumulative number of subgroups Since the group is also counting the number of grandchildren.

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_group_format%

The TF group format in the current group and return the result handle.

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_group_first_path%

Return the path to the first track of the current group. for $imageabs.

[Track list] [Group header] [Per Second]

%el_is_collapsed%(%el_is_hide_item%)

Whether the group is closed. (Whether the group header only display)

[Group header] [Group row]

%el_is_empty%

empty or not taken. (Just opposite %el_is_valid%)

[Track list] [Per Second] Well if you can not configure the sub-group structure,the group will go into a dummy or not.

[Group header] [Group row] [Min item num]

%el_is_valid%

Valid (empty line is not) or not taken.

[Track list] [Per Second] [Group header] [Group row] [Min item num]

%el_is_noheader%

Whether or not the group header (%el_group_row% is 0 1)

[Track list] [Per Second]

%el_sum_length%

Total length of the track of the group [hh:]mm:ss

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_sum_length_seconds%

The total length of the track of the group(s)

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_backcolour%

Background color returns in the form r-g-b.
r-g-b-a if you want to format,
%el_backcolour%-192 can add value and alpha.

[Track list] [Group header] [Per Second]

%el_preset_index%

Returns the current index group by the preset.

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_preset_name%

Returns the current name of the group by the preset.

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_is_group%

Popup whether the group header.

[Popup]

%el_popup_width%, %el_popup_height%

Size pop-up at that time. %el_width%, %el_height% Note that max size is returned.

[Popup]

%el_is_themed%

valid whether or not enable Visual Style

[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_foobar2000_path%

foobar2000 return the folder path of the executable.
[Track list] [Group header] [Per Second] [Group row] [Min item num]

%el_user_profile_path%

Returns the user profile folder path.
[Track list] [Group header] [Per Second] [Group row] [Min item num] [Popup]

¦ ¦ ¦ ¦ ¦ ¦ functions ¦ ¦ ¦ ¦ ¦ ¦

? Draw control functions [Track list],[Group header],[Per Second],[Popup] effective.

$font(name,size,OPTIONS)

Font settings.

OPTIONS: bold italic underline strikeout

Example:

$font(Tahoma,10,bold italic) 

$drawstring(text,x,y,W,H,rgba,OPTIONS[,OPTIONS2])

String drawing functions. text coordinates (x,y) to draw on.

[Note] and the string can only function in drawtextex and drawtext. TrueType fonts can only be.

OPTIONS: specify aligned,specify rendering quality,and given to the clip.

Specify left hcenter right aligned horizontally
given top vcenter bottom vertically aligned
nowrap not wraparound
noaa ClearType anti-aliasing and also disabled.
aa put anti-aliasing mode. Takes a font in ClearType antialiasing does not work.
hq mode to draw the highest quality. ClearType mode.(default)
trimchar trimword trim setting does not fit into the display range
elipchar elipword not fit into the last set to replace the display range???
mempos getlastpos in to be able to get the coordinates of the drawing.

OPTIONS2(optional experimental,experimental option) specify the conditions of glow effect.

glow:expand:colour[:strength] glow options
expand - [0-5]
colour - r-g-b
strength - [0-3] glow_aa case of disabled

offset:x:y
x - glow horizontal offset
y - glow vertical offset

? glow is a heavy process.(Especially when the pseudo transparent)

Example

$drawstring(abcd,10,10,,,255-128-64-128,) 
$drawstring(abcd,10,10,,,255-128-64-128,left vcenter,glow:2:255-255-255:3) 
$drawstring(wxyz,10,10,,,255-255-255,,glow:2:32-168-268:1 offset:1:1) 
$drawstring(wxyz,10,10,,,255-255-255,elipchar) 

$drawrect(x,y,w,h,R1-G1-B1-A1,R2-G2-B2-A2,OPTIONS)

Rectangle drawing functions.
Coordinates (x,y) size (w,h) to draw a rectangle.
R1-G1-B1-A1 internal color
R2-G2-B2-A2 Border Color

OPTIONS
aa - put the antialiasing

Example

$drawrect(0,50,50,50,255-128-64-128,,aa) 

$gradientrect(x,y,w,h,r1-g1-b1-a1,r2-g2-b2-a2,OPTIONS,PEAK)

Gradient fill in the rectangle drawing functions.
Coordinates(x,y) size(w,h) to draw a rectangle.
r1-g1-b1-a1 gradient start color
r2-g2-b2-a2 peak color gradient

OPTIONS vertical vertical gradient
horizontal horizontal gradient
aa put the antialiasing
how nonlinear nonlinear gradient

PEAK:0-100
Shifting the peak position of the gradient.
0 is the default,exit at peak color.
50 when the color and the center peak.

Example:

$gradientrect(0,50,50,50,255-128-64-128,255-255-255,vertical aa) 
$gradientrect(0,50,50,50,255-128-64-128,255-255-255,,10) 

$drawblurrect(x,y,w,h,colour,level)

Fill a rectangle drawing functions blur the outline.
level [1-7]

$drawfocusrect(x,y,w,h)

Function to draw a dotted line shows the focus rectangle of the specified frame.

$drawthemerect(x,y,w,h,control_name,partId,stateId)

Visual Style in the rectangle with the control(button or progress bar) function to draw.
Because only practical to draw a picture may be low.
Visual Style not defined in control will not be drawn.
WindowXP or at least required.

control_name: Specify the name of the type of control you want to draw. One of the following:
window button rebar toolbar status listview header progress tab trackbar tooltip treeview spin scrollbar edit combobox taskbar taskband startpanel explorerbar

partId: to draw parts ID. High numbers are likely to make the following ranges for each control as a guide. In most cases,like that little is to be defined.
window: 1-37
button rebar listview tooltip: 1-5
toolbar: 1-6
status treeview taskband: 1-3
header spin: 1-4
progress: 1-4
tab trackbar scrollbar: 1-10
edit: 1-2
combobox: 1
taskbar: 1-8
startpanel: 1-11
explorerbar: 1-12

stateId: Select state,such as ID. No. If you do not have to specify the state is 0.
stateId of 0 or 1 or 2 if not drawn in parts has not been defined.

Example:

       Vista,then you can apply the style of Windows Explorer. 
$drawthemerect(0,0,%el_width%,%el_height%,listview,1,1) / / default 
$drawthemerect(0,0,%el_width%,%el_height%,listview,1,2) / / hot 
$drawthemerect(0,0,%el_width%,%el_height%,listview,1,3) / / selected 
$drawthemerect(0,0,%el_width%,%el_height%,listview,1,4) / / disable 
$drawthemerect(0,0,%el_width%,%el_height%,listview,1,5) / / notfocused selected 
$drawthemerect(0,0,%el_width%,%el_height%,listview,1,6) / / hot selected 
$drawthemerect(0,0,%el_width%,1,listview,7,0) / / group header line 

$drawroundrect(x,y,w,h,w2,h2,R1-G1-B1-A1,R2-G2-B2-A2,RESERVED)

Draw a rectangle with rounded corners function.
Coordinates(x,y) size(w,h) to draw a rectangle with rounded corners.
Rounded corners,w2,h2 can be adjusted.
w> 4*w2 & & h> 4*h2 satisfy the need.
R1-G1-B1-A1 internal color
R2-G2-B2-A2 Border Color

Example:

$drawroundrect(10,20,50,50,4,4,255-255-128-255,,) 

$drawellipse(x,y,w,h,R1-G1-B1-A1,R2-G2-B2-A2,RESERVED)

Ellipse drawing functions.
Coordinates (x,y) size (w,h) to draw the ellipse.
R1-G1-B1-A1 internal color
R2-G2-B2-A2 Border Color

$drawtriangle(x1,y1,x2,y2,x3,y3,R1-G1-B1-A1,R2-G2-B2-A2,OPTIONS)

(x1,y1),(x2,y2),(x3,y3) and the vertex functions to draw a triangle.
R1-G1-B1-A1 internal color
R2-G2-B2-A2 Border Color

OPTIONS
aa - put the antialiasing

Example:

$drawtriangle(10,5,20,10,10,15,200-100-100,,aa) 

$imageabs(x,y,w,h,path,OPTIONS,n,alpha,OPTIONS2)

Coordinates (x,y) size (w,h) in the path to display an image that is specified in.
Hold in memory the image after resizing,I'll see if the processing efficiency of the next.
Is referred to as the image will be deleted from the memory of them.
w,h display the original image size is omitted,the cache.
(However, w,h if you are already cached in memory even if omitted,the image size will have to accept cash)

Reduced rate if you want to handle multiple
Poor quality and will be expanded after shrinking.
nodisplay noexpansion and using such Cache memory is better first to reduce the largest percentage reduction in the rate of use.

If images exist true,must be false.

dipsplays the image specified by path. after the image is resized,it is cached on the memory.

path: the absolute path of the image (or images embedded AudioFile's path)

OPTIONS

¦ <appearance>

nokeepaspect not maintain aspect ratio (nodisplay,archive,icon options and non-exclusive).

Hide nodisplay loaded into memory only.

noexpansion is to reduce,not expand.

¦ <align> each exclusion.
Specify left right aligned horizontally.

given top bottom aligned vertically.

¦ <misc> wc wildcard (*,?) to take effect. become disabled and read engine to specify something.
Toriaezu delay proceeding in another thread,loading an image. Larger images will recommend you read.
nodelay disable loading of images in a separate thread.

¦ <read engine> each exclusion.
path through the archive archive reader to display images.
The format of the archive reader path-dependent,the absolute path of the Archives | base file path in the room.
Example:

C:\aaa\image.zip|bbb/ccc.jpg 

icon icon path is specified in the file (*.ico) to view.

Audio artreader path that is specified in the core of embedded images of the artwork reader reads files in foobar2000.
If no embedded images, Audio Files folder to load images. However slow.
Audio artreader_front path that is specified in the core of embedded images of the artwork reader reads files in foobar2000.
Audio artreader_back path that is specified in the core of embedded images of the artwork reader reads files in foobar2000.
Audio artreader_disc path that is specified in the core of embedded images of the artwork reader reads files in foobar2000.
Audio artreader_icon path that is specified in the core of embedded images of the artwork reader reads files in foobar2000.
(artreader *** are currently disrecommended options because these option seem to be slow)

n rotateflip index for

1:ninety
2:180
3:270
4:reversed right
5:ninety + Flip Horizontal
6:Flip Vertical
7:ninety + Flip Vertical

alpha 0-255 Opacity

OPTIONS2(shadow effect) glow:expand:colour offset:x:y

Example:

       $imageabs(10,10,50,50,C:\%album%.jpg) 
       $imageabs(10,10,50,50,C:\%album%.jpg,left top) 
       $imageabs(10,10,50,50,C:\%album%.jpg,,6) 
       $imageabs(10,10,50,50,C:\%album%.*,wc,6) 
       $imageabs(10,10,50,50,C:\%album%.jpg,bottom nodelay,,128) 
       $imageabs(10,10,50,50,C:\%album%.jpg,bottom,,,glow:2:0-0-0 offset:4:4) 
       $imageabs(10,10,50,50,%el_group_first_path%,artreader_front) 

$imageabs_rc(rw,rh,srcx,srcy,srcw,srch,x,y,path,OPTIONS,n,alpha,OPTIONS2)

To view the clip,and resize images.
path specified by the image size(rw,rh) After resizing,the
The subregion(srcx,srcy,srcw,srch) coordinates(x,y) size(srcw,srch) to display.

In memory(rw,rh) in the cache. When evaluating TF(rw,rh) and changes to reload image.
Therefore,rw,rh is to be given a fixed value.

If images exist true,must be false.

OPTIONS(imageabs reference) nokeepaspect not maintain aspect ratio read only memory nodisplay Hide archive icon Left hcener right top vcenter bottom

n rotateflip index for 1:ninety 2:180 3:270 4:reversed right 5:ninety + Flip Horizontal 6:Flip Vertical 7:ninety + Flip Vertical

alpha 0-255 Opacity

Example:

$imageabs_rc(200,100,0,0,100,50,10,10,C:\%album%.jpg,,6,192) 
$imageabs_rc(200,100,0,0,200,100,10,10,C:\%album%.jpg,,) (= $imageabs(10,10,200,100,C:\%album%.jpg,left top,,)) 
$imageabs_rc(150,120,0,0,150,120,20,15,C:\%album%.jpg,hcenter vcenter,) (= $imageabs(20,15,150,120,C:\%album%.jpg,,,)) 

? Auxiliary draw

$getlastpos(elem)

Image display function imageabs,imageabs_rc in immediately to get the actual coordinates to draw a picture.
Addition,measurestring also use when you get the results.
If the drawstring,mempos can be obtained only after the specified coordinates.

  want to get to specify the element elem. 

x:left y:top w:width h:height r:right b:bottom

Example:

$setworldtransform(2) 
$puts(img_path,C:\%album%.jpg) 
$imageabs(10,4,100,100,$get(img_path),top noexpansion,) 
$imageabs($getlastpos(x),$getlastpos(b),$getlastpos(w),20,$get(img_path),top nokeepaspect,6) 
$gradientrect($getlastpos(x),$getlastpos(y),$getlastpos(w),$getlastpos(h),%el_backcolour%-128,%el_backcolour%-255) 
$setworldtransform(0) 

$measurestring(text,x,y,W,H,OPTIONS)

$drawstring to calculate the viewing area when drawing the string.
As a result,return the horizontal width of the display area.
$Getlastpos to results obtained in the display area.
OPTIONS is the same as $drawstring.
Also,drawstring at,glow_aa If you put the glow effect,
Display range is the result of measurestring may not match.

$getimagewidth(path),$getimageheight(path)

image path is specified in the $imageabs $imageabs_rc in the cache memory
If the image has been resized width of horizontal,vertical width of return.
That can only use $imageabs $imageabs_rc behind.
nokeepaspect may be able to calculate the aspect ratio unless you apply.

$setcoordinate(mode)

$setcoordinate(0,X,Y,W,H) $setcoordinate(1,X,Y,R,B) Drawing function argument «(x,y,w,h)» what a given,(x,y,right,bottom) to the specified changes.
$drawtriangle for $imageabs_rc or is disabled.
The X,Y,W,H is specified,change the position can be omitted if the default drawing coordinate drawing functions.
$imageab,$imageabs_rc and $drawtriangle for the disabled.

mode:Specifies the coordinate mode 0 default(x,y,w,h) 1(x,y,right,bottom)

(x,y )←—– w ——→ |—————-|

   | | 
 h | | 
   | | 
   |________________| 
                  (right,bottom) 

$setworldtransform(mode)

To change the coordinate system.
So you can draw another line also does not change the coordinate system.
Group should be useful for drawing wide and across multiple tracks.
Particularly useful for displaying images.
Prohibited in Popup.
(TF see early examples.)

mode 0:default
Origin of each track (x,y)=(0,0),the top left of each track.

1:group common coordinate system
Group and the origin of each track (x,y)=(0,0) in the Group and the upper left of the line.
%el_height%=(%el_item_count2%+%el_group_row%)*%el_row_height% will.

2:item list common coordinate system
Origin of each track (x,y)=(0,0) to the upper left of the group's first full line.
%el_height%=%el_item_count2%*%el_row_height% will.

default

(0,0) 
    |----------------| 
    |________________| 
                  (el_width,el_height) 

common coordinate system group

(0,0) 
    |----------------| 
    | Group header | 
    |----------------| 
    |----------------| 
    |----------------| 
    |----------------| 
    |________________| 
                  (el_width,el_height) 

item list common coordinate

    |----------------| 
    | Group header | 

(0,0 )|—————-|

    |----------------| 
    |----------------| 
    |----------------| 
    |________________| 
                  (el_width,el_height) 

$enabledraw(mode)

System function draw($draw() or $imageabs() ) to control whether to draw.
Drawing up of this function is called again on / off you.
Primarily used to control the drawing of the empty rows.

mode
0:disable function drawing system
1:Enable

Example:

$enabledraw(1) 
$enabledraw(%el_is_valid%) 

$getsyscolour(index)

R-g-b color system in the form of return.

index:[0-30] color index system

$averagecolour(colour1,colour2 [,???)

r-g-b-a the average color of the form. (colour1 + colour2 +???) / N

$blendcolour(colour1,w1,colour2,w2,[,???)

r-g-b-a weighted average return in the form. (w1 * colur1 + w2 * colour2 +???+ wN * colourN) /(w1 + w2 +???+ wN)

$addcolour(colour1,colour2 [,???)

r-g-b-a to add the color of the form. ???colour1 + colour2 + + colourN

$subcolour(colour1,colour2 [,???)

r-g-b-a to subtract the color of the form. colour1 - colour2 - colour3???- colourN

$xorcolour(colour1,colour2 [,???)

r-g-b-style color to XOR operator. colour1 only return the value of alpha channel. ???colour1 xor colour2 xor colour3 xor colourN

General Functions

Basically [Track list] [Group header] [Per Second] [Group row] [Min item num] [Popup] effective.

$getgroupformat(group_index)

group_index group specified in the TF group format as a result of processing returns.

group_index:to specify what group or second(counting from 0).

%el_group_format%=$getgroupformat(%el_total_group_index%) relationship.

$findfile(path,[path2,path3 ,...])

path(wildcards accepted) to be specified if the file exists,and returns the first found file path.
Without the file does not return anything.(Strictly speaking,is «false» return) accepted path is specified.

$el_scale(val,factor [,DIV])

val * factor/100 or val * factor / DIV returned.
val and the factor is too large and overflow.

GDI drawing functions system

Using GDI to draw. A simple minute,may be processed faster.

$drawtext(text,x,y,W,H,r-g-b,OPTIONS)

GDI text drawing functions text coordinates(x,y) output

OPTIONS Specify left hcenter right aligned horizontally
given top vcenter bottom vertically aligned
noclip not clip

$drawtextex(text,x,y,W,H,r-g-b,OPTIONS)

Two string GDI drawing functions text coordinates (x,y) output

OPTIONS Specify left hcenter right aligned horizontally
given top vcenter bottom vertically aligned
noclip not clip
given permission wrap wraparound(vcenter,bottom and exclusive)
end_ellipsis If the text is clipped,the end of the text to replace …

Example:

$drawtextex(text,0,0,%_width%,%_height%,0-0-0,hcenter vcenter end_ellipsis) 

$gettextwidth(text,[FONTNAME,SIZE,OPTIONS])

GDI(drawtext,drawtextex) returns the width of the text when you draw a horizontal text. specified acceptable font($font see options). Optional font specified

$gettextheight([FONTNAME,SIZE,OPTIONS])

GDI returns the width of the text when drawn with the vertical.
specified acceptable font($font see options). Optional font specified

$fillrect(x,y,w,h,r-g-b,RESERVED)

Fill rectangle function

$fillroundrect(x,y,w,h,w2,h2,r1-g1-b1,r2-g2-b2)

Function fill rectangle with rounded corners

Functions ¦ ¦ ¦ Popup ¦ ¦ ¦

[Popup(Background)],[Popup(Track)] effective.

$popupsize(w,h)

Pop-up function to reduce the size. Ie w <max size(width) h <max size(height) Meet the need.

$popuphide()

Not pop up. At that point,but once you call,do not pop up to confirm that.

$popuptracknum(num)

The maximum number of tracks to reduce the total num treatment. Popup(Background) only.

foobar2000/manual/elplaylist_tutorial.txt · Последние изменения: 2009/11/08 22:03 — Izotop