|
begingroupundo;gofiletop;#i=0;
while(1){
replacedown "screen viewerpage:","screen viewerpage"+str(#i)+":";
if(!result)break;
#i=#i+1;
}
gofiletop;
$b1=@"""Page [0-9]+"" action ShowMenu\(""viewerpage[0-9]+""\)";
while(1){
searchdown "(?<=screen viewerpage)(\\d+)(?=:)",regular;
if(!result)break;
#n=val(gettext(foundtopx,foundtopy,foundendx,foundendy));
$a1=@"""Page "+str(#n-1)+@""" action ShowMenu\(""viewerpage"+str(#n-1)+@""
"\)";
$a2=@"""Page "+str(#n+1)+@""" action ShowMenu\(""viewerpage"+str(#n+1)+@""
"\)";
replacedown $b1,$a1,regular;
replacedown $b1,$a2,regular;
}
endgroupundo;
|
|