/// <summary>
        /// Sets the value of a variable.
        /// </summary>
        /// <param name="variableName">Name of the variable.</param>
        /// <param name="value">The value to set.</param>
        public void SetVar(string variableName, string value)
        {
            if (value == null)
            {
                value = "";
            }

            AutoHotkeyDll.ahkassign(variableName, value);
        }
示例#2
0
        /// <summary>
        /// Sets the value of a variable.
        /// </summary>
        /// <param name="variableName">Name of the variable.</param>
        /// <param name="value">The value to set.</param>
        public void SetVar(string variableName, string value)
        {
            using (new CurrentDirectorySaver()) {
                if (value == null)
                {
                    value = "";
                }

                AutoHotkeyDll.ahkassign(variableName, value);
            }
        }