public static Thread ThreadFromText(string Code, bool UseDebug) { if (UseDebug) { return(AhkDllFlat.ahktextdll(Code, "/Debug", "")); } else { return(AhkDllFlat.ahktextdll(Code, "", "")); } }
/// <summary> /// Start a new AutoHotkey thread. This (or ThreadFromFile) must be /// called before other member functions can be called. /// </summary> /// <param name="Code">This plain-text code will be launched with the /// new thread. Leave it blank to use the defaults (#Persistent and /// #NoTrayIcon).</param> public static void ThreadFromText(string Code) { AhkDllFlat.ahktextdll(Code, "", ""); }