/// <summary> /// Determines if the label exists. /// </summary> /// <param name="labelName">Name of the label.</param> /// <returns>Returns true if the label exists, otherwise false</returns> public bool LabelExists(string labelName) { using (new CurrentDirectorySaver()) { IntPtr labelptr = AutoHotkeyDll.ahkFindLabel(labelName); return(labelptr != IntPtr.Zero); } }
/// <summary> /// Determines if the label exists. /// </summary> /// <param name="labelName">Name of the label.</param> /// <returns>Returns true if the label exists, otherwise false</returns> public bool LabelExists(string labelName) { IntPtr labelptr = AutoHotkeyDll.ahkFindLabel(labelName); return(labelptr != IntPtr.Zero); }