Posts: 7
Threads: 2
Joined: Oct 2012
I use "out" command to make comments while running macros.
I wish to save the text to a text file on my desktop.
I tried the following and I can't get it to work. The file is empty.
out "test"
out "123"
out "456"
5
str s
int h
str sf="$desktop$\notestoday.txt"
h=id(2201 "Quick Macros") ;;qm output
s.getwintext(h)
s.setfile(sf)
run sf
end
Posts: 153
Threads: 33
Joined: Aug 2009
Macro
Macro3
str s sf="$desktop$\notestoday.txt"
out
out "test"
out "123"
out "456"
1
int h=id(2201 _hwndqm)
int lens=SendMessage(h SCI.SCI_GETTEXTLENGTH 0 0)
s.fix(SendMessage(h SCI.SCI_GETTEXT lens+1 s.all(lens)))
s.setfile(sf)
run sf
But why using ouput control? can put information in a string and save it to file... just a thought.
Posts: 7
Threads: 2
Joined: Oct 2012
thank you very much. that worked great!