Message 1 of 5
Create WindowStream (C++ / C#)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there any way to create a new WindowStream value?
C#
just doesn't have constructors for WindowStream or any Create method
C++
according to WindowStream.h there are two constructors:
class WindowStream : public CharStream
{
public:
HWND window;
int cursor;
MSTR title;
Listener* listener;
CharStream* log;
MCHAR wputs_buf[512]; // edit control output buffer
MCHAR* wputs_p;
HWND echo;
// Constructor / Destructor
WindowStream(HWND iwin);
WindowStream(const MCHAR* title); /* for background scripts; window with given title will open if output generated */
~WindowStream();
but neither of the two works...
but MXS:
newScript()
makes it somehow.
Am I missing something?
Sure, I could execute MXS (string, script) from c# or c++, but that's not the point of the problem. I'm specifically interested in how to make an instance of WindowStream using SDK methods or know at least the way MXS does.