Nisteo Posted February 24 Share Posted February 24 My idea is to run functions interactively from a console window. But "Execute" can never execute, lol. #AutoIt3Wrapper_Change2CUI=y Global $sStdIn, $sExecReturn While 1 $sStdIn = ConsoleRead() If $sStdIn <> "" Then $sExecReturn = Execute($sStdIn) If @error Then MsgBox(16, "Error", "Cannot execute: " & $sStdIn) Else ConsoleWrite($sExecReturn) EndIf EndIf Sleep(10) WEnd If I add quotes like this: Execute('"' & $sStdIn & '"') then "Execute" just returns $sStdIn without executing. Also, if I compile it in GUI mode and pipe STDIN of this script to STDOUT of another non-console application, then everything works as expected. What I'm doing wrong? Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now