本帖最后由 lynfr8 于 2009-6-27 01:34 编辑
建议自己写代码生成CHM索引.
thesnow 发表于 2009-4-30 05:10
【此问题已解决,在制作文章索引时候写段代码利用相对路径重新定位*(数字).html即可】 ;将文白代码生成的TopicList.html改后缀名为txt,匹配成相对路径后写入TopicListnew.txt
$file = FileOpen("TopicList.txt", 0)
dim $count
While 1
$line = FileReadLine($file)
$array = StringSplit($line, "=", 1)
$count = $count + 1
for $i = 2 to $array[0]
$title = $array[UBound($array) - 1]
$link = $array[UBound($array) - 2]
Next
$file2 = FileOpen("TopicListnew.txt", 1)
$a='<a href'&'='
$b='''html/'
$c='.html'''
$d='>'&$title&'</a></br>'
$e=$a&$b&$link&$c&' '&$d
FileWriteLine($file2, $e)
TrayTip("次数", $count, 0)
Wend
|