回复 2# batman
额,其实是这样的,1是个变量,第一列可以是:
1
3
5
7
3
8
6
9
……
之类的不规则顺序。
如果它们前后有固定的标志,那就简单了,我可以用宏脚本处理的,但去掉了固定标志,用批处理还能不能按顺序排列呢?
比如:
第1章
第3章
第5章
第7章
……
第N章
用下面的宏脚本可以按顺序排序成:
第1章
第2章
第3章
第4章
……
第N章- document.selection.Replace("\n\n\n第","hhhhhhhhhhh第",eeFindNext | eeReplaceAll);
- document.selection.Replace("\n","jjjjjjjjj",eeFindNext | eeReplaceAll);
- document.selection.Replace("hhhhhhhhhhh","\n",eeFindNext | eeReplaceAll);
- document.selection.Replace(".*.章 jjjjjjjjj","",nFlags);
- document.selection.Replace("jjjjjjjjj","",eeFindNext | eeReplaceAll);
- document.selection.PageDown(false,50000);
- document.selection.EndOfLine(false,eeLineView);
- document.selection.NewLine(1);
- document.selection.PageUp(false,50000);
-
-
- document.selection.Text="aaaaaa1bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa2bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa3bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa4bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa5bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa6bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa7bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa8bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa9bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa10bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa11bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa12bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa13bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa14bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa15bbbbbb";
- ……
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa3997bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa3998bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa3999bbbbbb";
- document.selection.StartOfLine(false,eeLineView | eeLineHomeText);
- document.selection.LineDown(false,1);
- document.selection.Text="aaaaaa4000bbbbbb";
- ……
复制代码
|