コード例 #1
0
        /// <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"));
        }
コード例 #2
0
 /// <summary>
 /// Executes raw ahk code.
 /// </summary>
 /// <param name="code">The code to execute</param>
 public void ExecRaw(string code)
 {
     AutoHotkeyDll.ahkExec(code);
 }