08-06-2009, 11:19 PM
You may want to look into setwintext that way it will know what window to put the text into. Like this...
Function Function4
Trigger F11
or you can do it with key but you will prolly want to act the window to paste the words
Function Function4
Trigger F1
or
Function Function4
Trigger F11
Function Function4
Trigger F11

str b c s
b="<end>"
str k="<start>"
int i
for i 1 8
,s.format("text1-this is some text-text %i text" i)
,k.addline(s)
c.from(k b)
c.setwintext(id(15 "Notepad"))
or you can do it with key but you will prolly want to act the window to paste the words
Function Function4
Trigger F1

key "<start>"
key Y
int j
str s
for j 1 8
,s.format("text1-this is some text-text %i text" j)
,key (s)
,key Y
key "<end>"
or
Function Function4
Trigger F11
