Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirection of executable's stardard & error output
#5
Thank you once more! I have just managed to give an acceptable solution, as it follows. Best regards.

Function dialog57
Code:
Copy      Help
;www.quickmacros.com/forum/showthread.php?tid=6492&pid=31648#pid31648
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 Button 0x54032000 0x0 25 11 48 14 "Run Exe"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""

if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,
,case 3
,opt waitmsg 1 ;;process messages while waiting
,wait 0 H mac("sub.Thread") ;;run code in other thread and wait
,
ret 1

#sub Thread

run "C:\MSDEV\SES\Spunal\exe\lstcat.exe" "C:\MSDEV\SES\Spunal\Config\param.dat"


Messages In This Thread
RE: Redirection of executable's stardard & error output - by ssimop - 07-16-2018, 04:53 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)