В общем тему можно считать пройденной. Вот рабочий код, если кому интересно...
$max_screens_stories = 70
SUB(screen, $folder, $x1scr,$y1scr, $x2scr,$y2scr)
IF(FExists($folder)=0)
FCREATE ($folder)
END_IF
$var = 0
GETFILELIST ($arr, STRCONCAT($folder,"\*.bmp"))
IF(ARRSIZE($arr) > 0)
$name = $arr[ARRSIZE($arr)-1]
strseparate($name, ".", $ass)
$name = $ass[0]
UNDEFINE($ass)
FOR($i=1,$i<strlen($name)+1)
IF(STRCUT($name, $i, 1) ! 0)
$var = STRCUT ($name, $i, strlen($name)-$i+1)
$i=strlen($name)+1
END_IF
END_CYC
INC($var, 1)
$n = strlen($var)
FOR($i=1,$i<strlen($name)-$n+1)
$var = STRCONCAT("0",$var)
END_CYC
$name = $var
WHILE(ARRSIZE($arr) >= $max_screens_stories)
FDELETE (STRCONCAT($folder,"\",$arr[0]))
UNDEFINE($arr)
GETFILELIST ($arr, STRCONCAT($folder,"\*.bmp"))
END_CYC
else
$name="0000000000"
END_IF
UNDEFINE($arr)
SCREENSHOTFIX($x1scr,$y1scr, $x2scr,$y2scr, STRCONCAT($folder,"\",$name,".bmp"), 0)
END_SUB
screen("скрины\история", 0,0, $_xmax,$_ymax)
HALT