src/Lurker/Helpers/ClipboardHelper.cs
/// <summary>
/// Gets the item in clipboard.
/// </summary>
/// <returns>The item in the clipboard.</returns>
Gets the item in clipboard.
Gets the item in clipboard .
public static async Task<PoeItem> GetItemInClipboard()
        {
            try
            {
                await Simulate.Events().ClickChord(WindowsInput.Events.KeyCode.LControl, WindowsInput.Events.KeyCode.C).Invoke();
                await Task.Delay(100);
                var text = GetClipboardText();
                var item = ItemParser.Parse(text);
                return ItemParser.Parse(text);
            }
            catch
            {
                return null;
            }
        }
public static async Task < PoeItem > GetItemInClipboard ( ) { try { await Simulate . Events ( ) . ClickChord ( WindowsInput . Events . KeyCode . LControl , WindowsInput . Events . KeyCode . C ) . Invoke ( ) ; await Task . Delay ( 100 ) ; var text = GetClipboardText ( ) ; var item = ItemParser . Parse ( text ) ; return ItemParser . Parse ( text ) ; } catch { return null ; } }
Gets the item in clipboard.
Gets the item in clipboard .
The item in the clipboard.
The item in the clipboard .