# Exec()

作者: HotKeyIt 最近更新时间: 20100319

Executes AutoHotkeys internal commands from within a given string.

Exec(_#_1,_#_2="",_#_3="",_#_4="",_#_5="",_#_6="",_#_7="",_#_8="",_#_9="",_#_10="",_#_11="",_#_12="",_#_13="",_#_14="",_#_15="",_#_16="",_#_17="",_#_18="",_#_19="",_#_20="")

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

#### 备注

This version is not well tested yet and could be called version 2.
The documentation is part of authors initial posting about the previous version. The old version is named "#()" and the new version "exec()".
This function is in no way stdlib conform. It uses assume global mode and transform, deref.

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?p=340131#340131

#### 许可

此函数(集)是基于 GNU GPL 许可的开源项目. 想了解许可详情, 请参见 gpl-3.0.txt

#### 示例

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

    test=var
    double=triple
    one=double
    var=one
    Script := "MsgBox 4,Title,%test% is %var%``, %%var%%``, %%%var%%%,5`nIfMsgBox Yes,MsgBox,You pressed yes`nIfMsgBox No,MsgBox,You pressed no"
    Exec(Script)
    ExitApp