设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 软件教学 >> 多媒体类 >> FooBar2000 Title Formatting[FooBar2000标题格式使用详解]
精品推荐
多媒体类点击TOP10
·Windows Media Player同步歌词秀全攻略
·简单点击几个按钮 RM视频格式转换不再犯难
·豪杰视频通2.0:国产的极品DVD转换工具
·RM、RMVB去广告专家自己打造
·Winamp 1.0~5.0 完全更新历史
·DVD转VCD/SVCD/AVI/MPEG4的超级能手--DVD转换专家
·Autorun Builder--轻松制作Windows下的光盘启动菜单
·APE文件如何播放?如何把APE转制成其他格式?
·FooBar2000 Title Formatting[FooBar2000标题格式使用详解]
·玩转字幕一条龙
软件教学点击TOP10
·自己动手制作USB启动盘快速简单
·学用金山游侠修改游戏
·常用软件序列号
·几百个软件注册机
·用eBook Edit 自己动手制作exe型电子书
·应用软件注册码大全(最新整理) 1
·Windows Media Player同步歌词秀全攻略
·五分钟玩转电脑迷共享空间
·液晶显示器测试小工具--Monitors Matter CheckScreen
·简单点击几个按钮 RM视频格式转换不再犯难
精选专题

FooBar2000 Title Formatting[FooBar2000标题格式使用详解]

作者: 来源: 时间:2006-1-28 22:19:36

FooBar2000 Title Formatting[FooBar2000标题格式使用详解](18) 字体为 Lucida Console

0000FF
$num(%_playlist_number,4)

┤' '

$ifgreater(4,%tracknumber%,
$select(%tracknumber%,
// 1 歌手

$padcut(%artist%,40,─)
,
// 2 专辑

$padcut(%album%,40,─)
,
// 3 发行时间 流派

['['%date%']' ]$if2(%genre%,other)
$repeat( ,$sub(40,$len2(['['%date%']' ]$if2(%genre%,other))))
,)
// > 3
,
' '$repeat( ,40)
)


0000FF
$ifgreater(3,%tracknumber%,
$select(%tracknumber%,
// 1
┤,
// 2 专辑
┤,)
// > 2
,│)
$tracknumber(2)

%title%


$tab()
0000FF
%_length%

我们看到在有的 title formatting 中歌曲名的括号的颜色和其他部分不同,这是怎么设置的呢?下

面我就说说这个问题

一般情况下歌曲名中括号的位置都是在最后,我就说说这种情况

这里用到的语句主要是: $strchr 和 $substr

//首先我们要确定 歌曲 中括号的位置
//括号主要包括 () 【】 [] ()
// $strchr 语句一般形式为 $strchr(x,y),x 为字符串,y 为字符
//他的作用是找出字符 y 在 x 中的位置,返回 数字
$puts(position,
$max($strchr(%title%,'('),$strchr(%title%,'['),$strchr(%title%,'('),$strchr(%title%,'【'))
)

//接下来就是要把前后两部分分开
// $substr 语句一般形式为 $substr(a,b,c),a 为字符串,b c 为数字
//作用是在字串 a 截取子串,从第b个字符开始到第c个字符
$puts(title_left,$substr(%title%,1,$sub($get(position),1)))
$puts(title_right,$substr(%title%,$get(position),$len2(%title%)))

//此时有一个问题如果歌曲名中没有括号那么 title_right 就是 歌曲名
$if($strcmp(0,$get(position)),
0000FF
%title%,
0000FF
$get(title_left)
00FF80
$get(title_right))


//当然我们还有更简单也更好的方法
//使用 $replace 语句
//一般形式: $replace(a,b1,c1,b2,c2,b3,c3....)
//功能: 逐一把 字符串 a 中的 bn 替换为 cn.
$replace(%_title%,
'(',41A5BE'(',
')',')',
'[',41A5BE'[',
']',']',
'【',41A5BE'【',
1.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](1)
2.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](2)
3.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](3)
4.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](4)
5.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](5)
6.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](6)
7.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](7)
8.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](8)
9.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](9)
10.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](10)
11.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](11)
12.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](12)
13.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](13)
14.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](14)
15.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](15)
16.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](16)
17.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](17)
18.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](18)
19.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](19)
20.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](20)
21.FooBar2000 Title Formatting[FooBar2000标题格式使用详解](21)
共21页 9 7 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [218 :>

FooBar2000 Title Formatting[FooBar2000标题格式使用详解] 相关文章:
FooBar2000 Title Formatting[FooBar2000标题格式使用详解] 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com