Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RedirectQmOutput Help.
#2
Macro Macro2285
Code:
Copy      Help
;/exe
RedirectQmOutput &RedirectQmOutputToLogFile
;out ;;delete the log file
out "test" ;;write to the log file
if mes("Open log file?" "" "YN")
,run "notepad.exe" F"''{_logfile}''"
Function RedirectQmOutputToLogFile
Code:
Copy      Help
;/
function# str&s reserved

if &s
,LogFile s
else
,if(FileExists(_logfile)) del- _logfile

ret 1

Don't use ExeOutputWindow and RedirectQmOutput in the same exe process, because then will work either ExeOutputWindow or your callback function, not both.

Quote:Also an example of how to use RedirectQmOutput in a Simple Dialog that is created with quick macros would also be helpful
ExeOutputWindow is an example. Actually most code is in EOW_Dialog. ExeOutputWindow just opens the dialog. EOW_OutRedirProc captures text and sends to the dialog.


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)