Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Return data to cmd trigger
#1
When running to a Quick Macro from the command line trigger, is there a way to return data to the command? I need a way to pass data that Quick Macros gets to the caller (program that executes the Quick Macros string to the cli). Thanks
#2
If want to return data in standard output, make exe program and let it be console.

Macro consoleReturn
Code:
Copy      Help
;/exe
str s = "return data[]"
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE) s s.len &_i 0)
;2

;BEGIN PROJECT
;main_function  consoleReturn
;exe_file  $my qm$\consoleReturn.exe
;icon  <default>
;manifest  $qm$\default.exe.manifest
;flags  70
;guid  {12B92F3D-B662-47F7-B3EC-83577005A91B}
;END PROJECT

Else let the macro write to a file, and let cmd read that file.


Forum Jump:


Users browsing this thread: 2 Guest(s)