Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get text from QM output
#1
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.

Code:
Copy      Help
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
#2
Macro Macro3
Code:
Copy      Help
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.
#3
thank you very much. that worked great!


Forum Jump:


Users browsing this thread: 1 Guest(s)