Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Return data to cmd trigger
#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.


Messages In This Thread
Return data to cmd trigger - by pctechtv - 03-14-2025, 06:43 AM
RE: Return data to cmd trigger - by Gintaras - 03-14-2025, 12:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)