Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM Output Window to text file
#3
Thanks, but I am having a problem with this code...

When running as a QM macro:
In the case that the QM output window is empty (clear) at the start, there is nothing written to the file. Only on subsequent runs, where there is already text in the QM output window, is there anything in the text file.

When running as an EXE:
Given the above, running as an exe (which starts with a clear output, I gather) also logs nothing to the text file.

Any suggestions?

Macro
Code:
Copy      Help
str wdir="c:\directory"
str idir="c:\anotherdirectory\"
out "wdir"
out wdir
out "idir"
out idir

str s
int h=id(2201 _hwndqm)
#if QMVER>=0x02030000
int lens=SendMessage(h SCI.SCI_GETTEXTLENGTH 0 0)
s.fix(SendMessage(h SCI.SCI_GETTEXT lens+1 s.all(lens)))
#else
s.getwintext(h)
#endif
;mes s
s.setfile("$desktop$\test.txt")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)