Hello,
First of all - even I know everybody do this, but I also need to say - this is a
very, very good editor!!! Thanks for this!
So, my problem is the following:
Since the assignLog function is obsolote, some of my scripts are not working -
of course. I just would like to ask a little help how can I implement the next
example with the new functions:
function Test() {
var shell = new ActiveXObject("WScript.Shell");
var exec = shell.Exec("ipconfig /all");
var logEditor = newEditor();
logEditor.assignLog();
logEditor.Text(exec.StdOut.ReadAll());
}
In the earlier versions, I was able to read the output of an external command,
and write immediatelly to the log window, without any changes.
function Test() {
var shell = new ActiveXObject("WScript.Shell");
var exec = shell.Exec("ipconfig /all");
logAddLine(exec.StdOut.ReadAll());
}
If I try now with the logAddLine function, than the result will be in one line
(and that also a problem, that the scrolling is not posible there).
Is it possible to copy the result without any manipulation to the log window in
the correct form? What I miss, is a function like logAddText or something...
I use now the 4.5.3 (2297) version.
Thank you!
--
<http://forum.pspad.com/read.php?2,43857,43857>
PSPad freeware editor http://www.pspad.com