# Exec()

Author: HotKeyIt Last Modified: 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="")

For more details of the functions's parameters and return value, please see it's source code or the document.

#### Remarks

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.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?p=340131#340131

#### License

The functions is an open source item under the GNU GPL license. For details, please see gpl-3.0.txt

#### Example

    ; #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