/// <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"));
        }
Esempio n. 2
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)
 {
     using (new CurrentDirectorySaver()) {
         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);
 }
Esempio n. 4
0
 /// <summary>
 /// Executes raw ahk code.
 /// </summary>
 /// <param name="code">The code to execute</param>
 public void ExecRaw(string code)
 {
     using (new CurrentDirectorySaver()) {
         AutoHotkeyDll.ahkExec(code);
     }
 }