FileAppend ("asdas","*") - dont work
is there any way to print something to console where it run ?
[Mod edit: Topic moved from ''AHK v2 Development. Please use 'Ask For Help v2' for help requests like this.]
echo text to console where it run
Re: echo text to console where it run
dont insert spaces before the parens
Re: echo text to console where it run
can you give me correct example ?
Code: Select all
#Requires AutoHotkey v2.0
FileAppend ( "asdas" , "*" )
Re: echo text to console where it run
Take example from official site
Code: Select all
#Requires AutoHotkey v2.0
FileAppend "asdas", "*"
Re: echo text to console where it run
use
Code: Select all
DllCall("AttachConsole", "UInt", ATTACH_PARENT_PROCESS := -1)
Re: echo text to console where it run
"%ProgramFiles%\AutoHotkey\AutoHotkey.exe" "2.ahk" |moreFilename
Type: String
The name of the file to be appended, which is assumed to be in A_WorkingDir if an absolute path isn't specified. The destination directory must already exist.
Standard Output (stdout): Specifying an asterisk (*) for Filename causes Text to be sent to standard output (stdout). Such text can be redirected to a file, piped to another EXE, or captured by fancy text editors. For example, the following would be valid if typed at a command prompt:
"%ProgramFiles%\AutoHotkey\AutoHotkey.exe" "My Script.ahk" >"Error Log.txt"
However, text sent to stdout will not appear at the command prompt it was launched from. This can be worked around by 1) compiling the script with the Ahk2Exe ConsoleApp directive, or 2) piping a script's output to another command or program. For example:
"%ProgramFiles%\AutoHotkey\AutoHotkey.exe" "My Script.ahk" |more
For /F "tokens=*" %L in ('""%ProgramFiles%\AutoHotkey\AutoHotkey.exe" "My Script .ahk""') do @Echo %L
Specifying two asterisks (**) for Filename causes Text to be sent to the standard error stream (stderr).