Advertisement
DubStepMad

Untitled

Jun 18th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. protected override void WndProc(ref Message m)
  2. {
  3. if (m.Msg == 0x0312 && m.WParam.ToInt32() == MYACTION_HOTKEY_ID)
  4. {
  5. var startTime = DateTime.UtcNow;
  6.  
  7. while (DateTime.UtcNow - startTime < TimeSpan.FromMinutes(60))
  8. {
  9. string message = txtmessage.Text;
  10. Clipboard.SetText(message);
  11. SendKeys.SendWait("x");
  12. SendKeys.SendWait("^v");
  13. SendKeys.SendWait("{ENTER}");
  14. }
  15.  
  16. }
  17. base.WndProc(ref m);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement