/// <summary> /// Gets The AutoHotkey symbol that matched the <see cref="HotStringSendEnum"/> Value /// </summary> /// <param name="this"></param> /// <returns> /// String that Represents the AutoHotkey End Char Symbol /// </returns> /// <remarks> /// <seealso cref="EndCharKeyMap"/> /// <seealso cref="AhkKeyMapAhkMapValue"/> /// <seealso cref="HotStringSendEnum"/> /// </remarks> /// <example> /// string strSymbol = HotStringSendEnum.SendEvent.GetAutoHotKeySynbol(); /// </example> public static string GetAutoHotKeySynbol(this HotStringSendEnum @this) { string EnumName = @this.ToString(); var itm = HotstringSendMethodMap.Instance[EnumName]; if (itm == null) { return(string.Empty); } return(itm.AutoHotKeyValue); }
private void ddlSend_SelectedIndexChanged(object sender, EventArgs e) { if (IsLoaded == false) { return; } if (this.m_HotStringValue == null) { return; } if (ddlSend.SelectedItem != null) { AhkKeyMapAhkMapValue Sendval = (AhkKeyMapAhkMapValue)ddlSend.SelectedItem; HotStringSendEnum currentSendEnum = (HotStringSendEnum)Enum.Parse(typeof(HotStringSendEnum), Sendval.Key); this.HotStringValue.Options.SendMethod = currentSendEnum; } }
/// <summary> /// Gets <see cref="AhkKeyMapAhkMapValue"/> the represents extended information about /// the <see cref="HotStringSendEnum"/> value. /// </summary> /// <param name="this"><see cref="HotStringSendEnum"/></param> /// <returns> /// <see cref="AhkKeyMapAhkMapValue"/> instance for the Enum /// </returns> /// <remarks> /// <seealso cref="EndCharKeyMap"/> /// <seealso cref="AhkKeyMapAhkMapValue"/> /// <seealso cref="HotStringSendEnum"/> /// </remarks> /// <example> /// AhkKeyMapAhkMapValue info = HotStringSendEnum.SendEvent.GetAhkMapValue(); /// </example> public static AhkKeyMapAhkMapValue GetAhkMapValue(this HotStringSendEnum @this) { string EnumName = @this.ToString(); return(HotstringSendMethodMap.Instance[EnumName]); }