/// <summary> /// Evaulates an expression or function and returns the results /// </summary> /// <param name="code">The code to execute</param> /// <returns>Returns the result of an expression</returns> public string Eval(string code) { var codeToRun = "A__EVAL:=" + code; AutoHotkeyDll.ahkExec(codeToRun); return(GetVar("A__EVAL")); }
/// <summary> /// Executes raw ahk code. /// </summary> /// <param name="code">The code to execute</param> public void ExecRaw(string code) { AutoHotkeyDll.ahkExec(code); }