コード例 #1
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == WM_CLIPBOARDUPDATE)
     {
         HistoryManager.UpdateItemList();
         return;
     }
     base.WndProc(ref m);
 }
コード例 #2
0
        public YalClipboardHistory()
        {
            PluginIcon = Utils.GetPluginIcon(Name);

            HelpText = $@"You can access your clipboard history by
simply typing '{Activator}'. This will provide a list of
history items, with the most recent ones places at
the top of the list. To copy an item from the history
you can either hit Enter or double click the item.

{Name} can save your clipboard history
between sessions, if the
'{(PluginUserControl as YalClipboardHistoryUC).cbStoreInDb.Text}' option is checked.
";

            historyManager = new HistoryManager(Path.Combine("plugins", Name));
        }