Skif_off wrote:2
Psychedelic
Thanks! About x64 exe interpretetor: is the plugin supports paths with environment variables? I now can not check

I use
AutoRun and environment variable %AutoIt%:
Code: Select all
If %AUTORUN_TCARCH% = 32 Then
SetEnv /EV AutoIt %COMMANDER_PATH%\AutoIt3.exe
Else
SetEnv /EV AutoIt %COMMANDER_PATH%\AutoIt3_x64.exe
EndIf
it's very convenient.
Yes I can do it, but
[Text below is not actual yet, I found a solution]:
I have another problem with Autoit.
The main problem - Autoit script can't
write text to the console or I can't read it correctly. So simple but..
Yes it has ConsoleWrite , but pipe that I create before starting AutoIt process (CreatePipe + CreateProcess(Autoit.exe)) is always empty, 0 bytes.
For example in AHK it sends to Stdout pipe:
If I run AHK script from cmd.exe - I do not see any output (like with Autoit), but if I run it with CreateProcess with Read\Write pipe - I see some data in pipe.
To see text in cmd.exe (for script debug or testing with cmd.exe) with AHK I used
Code: Select all
DllCall("AttachConsole", "int", -1)
and then
FileAppend, %content% `n, *
But in case of Autoit I do not see both - no text in cmd.exe, and no data in Pipe (CreateProcess).
I tried AttachConsole - no text.
So I started to search how to disaply text in console (cmd.exe for example) and has found this
https://www.autoitscript.com/forum/topic/154864-consolewrite-doesnt-work-need-console-print-function/
and tried it (Win 10)
Code: Select all
#include <consoleprint.au3>
ConsoleOut("asdasd")
but still no text in cmd.exe and in StdPipe.
I also tried some another variations (do not remember yet) but still no text in pipe or cmd.exe.