StdoutToVar

作者: Sean 最近更新时间: 20081005


Redirects the output of a command or application into one of the script's variables.

StdoutToVar_CreateProcess(sCmd, bStream = "", sDir = "", sInput = "")
StdoutToVar_CreateProcessCOM(sCmd, bStream = False, sDir = "", sInput = "")

关于函数的参数和返回值, 请参阅其源码.

备注

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/topic16823.html

许可

不存在

示例

; #Include StdoutToVar.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

MsgBox % StdoutToVar_CreateProcess("ipconfig.exe /all")
MsgBox % StdoutToVar_CreateProcess("ping.exe www.autohotkey.com", True)