03-13-2006, 09:29 AM
Here foreach should be used instead of for. Then you would have to use some extra code to increase n and break when it is > 100. Alternatively, instead of foreach, use str function getl to get n-th line:
act win(" Notepad" "Notepad")
spe 10
'Y
str a
int n
str t tt
tt.getmacro("Chess3")
for n 1 101
,a.from("test" n)
,key (a)
,'Y
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,;.....
,t.getl(tt n-1)
,;out "t now contains %s" t
,;.....
,;.....
,;.....
,;.....
,;.....
,key (t)
,'YYYYY