3

How to execute an action in my app always when user click ctrl+v (I want to assign a new alue to clipboard), or how to paste something in active window, when user clicks global hotkey in my app?

skaffman
  • 398,947
  • 96
  • 818
  • 769
djcis
  • 93
  • 1
  • 4

2 Answers2

1

When something is pasted the control will receive the WM_PASTE message. So you can intercept this Message.

Remko
  • 7,214
  • 2
  • 32
  • 52
0

Simplest way (without knowing what else is on your main form) is to add to your main menu items called Copy / Paste - make the shortcuts Ctrl-C and Ctrl-V. Implement routines in response to these menu items click events (or use actions) and your code will get called...

Despatcher
  • 1,745
  • 12
  • 18