protected override void WndProc(ref Message m) { switch (m.Msg) { case 0x0312: //RegisterHotKey handle if (m.WParam.ToString().Equals("225")) { //clear data Clipboard.Clear(); SendKeys.SendWait("^c"); SendKeys.Flush(); if (Clipboard.ContainsText())//Only when the Chrome browser, the expression is false { MessageBox.Show("get text"); } } break; } base.WndProc(ref m); }
Clipboard.Clear();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)