04-30-2014, 07:31 PM
Gintaras
I wrote the below function to help me log my progress on some installation scripts I do. I go through several reboots and just needed to know where the process was at. While this worked fine, it did not log random failures. Can I get an example of how use RedirectQmOutput to accomplish this?
I put in the ExeOutPutWindow and it works fine thanks for that. The commented out stuff is how I used to do it before 2.4.1.3, I found qmoutmon on here and compiled it.
Also an example of how to use RedirectQmOutput in a Simple Dialog that is created with quick macros would also be helpful
Thanks
Function _mjout
I wrote the below function to help me log my progress on some installation scripts I do. I go through several reboots and just needed to know where the process was at. While this worked fine, it did not log random failures. Can I get an example of how use RedirectQmOutput to accomplish this?
I put in the ExeOutPutWindow and it works fine thanks for that. The commented out stuff is how I used to do it before 2.4.1.3, I found qmoutmon on here and compiled it.
Also an example of how to use RedirectQmOutput in a Simple Dialog that is created with quick macros would also be helpful
Thanks
Function _mjout
;/
function# str'outmj
;int w999=win("QM out monitor" "QM_Editor")
;ifi-(w999)
,;run "C:\mjinstalls\qmoutmon.exe" "" "" "" 0x10000
str name.getfilename(ExeFullPath)
ExeOutputWindow 0 name
str mtime.timeformat
str s=s.from(F"{mtime} ", outmj)
out s
LogFile s 0 "c:\mjinstalls\mjinstalls.log"