11-02-2010, 11:36 PM
How can I do this? or how can I have the output of out() going to standard out? thanks.
writing a string to standard out
|
11-02-2010, 11:36 PM
How can I do this? or how can I have the output of out() going to standard out? thanks.
11-03-2010, 04:14 AM
How do you create or get standard out in QM?
11-03-2010, 04:17 PM
I actually don't know how and was asking a question of how can it be done. Thanks.
11-04-2010, 11:05 AM
Standard out is used in console programs. They use printf and similar functions. QM is not console program and does not have standard out.
I thought maybe you have exe that should write to stdout of command prompt or some other console process that launched it. Or maybe you want to write to dbgview.exe? Then use OutputDebugString.
11-04-2010, 04:15 PM
Yes, after reading up briefly on DbgView.exe I think using OutputDebugString should work for my purpose. What is the syntax for using it within QM? thanks.
11-04-2010, 04:23 PM
05-23-2014, 08:20 PM
I want to use my compiled exe (quickmacros.com/forum/viewtopic.php?p=27270) as command line application.
Therefore I search for a output to stdout (and maybe stderr too) So instead of "msg arr[i]" I search for something like "_stdout arr[i]" Is this supported somehow, or could this be taken as a feature request please? Till now I found only this: outd - dbgview.exe out - QM output msg - msgbox Thanks in advance, Stefan.
05-24-2014, 04:23 AM
The latest QM beta has function ExeOutputWindow. I is not console stdout, it is a simple version of QM output pane to be used in exe where QM is unavailable.
If need standard console: Function OutConsole ;/
05-24-2014, 10:42 AM
.
Many thanks Gintaras, but what should I do with this? This flashes a new console window for a fractal of a second only. I don't want to create a new console window! If I call my exe from a console window, I just want print out the message to that console. myMacro: ;/exe Usage: In future, I want to take console input "_command ", manipulate the string, and write back to console window: C:\>my.exe path "C:\Temp\Test\file.ext" Is this possible with Quick Macros? .
05-24-2014, 01:35 PM
Macro QM-console
;/exe ;Converts QM-created exe from GUI to console. ;/ ;/ Tested: printf and _cputs also work, but _cgets fails.
05-24-2014, 05:56 PM
Thank you very much.
I think I will need some time to play with this Great support! Happy that I bought it. Thanks again.
05-30-2014, 11:46 AM
In QM 2.4.1.5 added 'Console' option in 'Make exe' dialog, and functions ExeConsoleWrite, ExeConsoleRead, ExeConsoleRedirectQmOutput.
Download: http://www.quickmacros.com/download.html |
« Next Oldest | Next Newest »
|