Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void WndProc(ref Message m)
- {
- if (m.Msg == 0x0312 && m.WParam.ToInt32() == MYACTION_HOTKEY_ID)
- {
- var startTime = DateTime.UtcNow;
- while (DateTime.UtcNow - startTime < TimeSpan.FromMinutes(60))
- {
- string message = txtmessage.Text;
- Clipboard.SetText(message);
- SendKeys.SendWait("x");
- SendKeys.SendWait("^v");
- SendKeys.SendWait("{ENTER}");
- }
- }
- base.WndProc(ref m);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement