I’m curious if it is possible to write a program that monitors my text selection. One possible use would be to write an editor/IDE agnostic code formatter:
- Application/Service, P, is launched and somehow hooks into windows such that it gets notified when text is selected in any window.
- Some other application, A, is launched.
- User selects text in A.
- P is notified with the text that is selected.
–> I’d be happy to get this far…
This is not possible without specific knowledge of each control/application that will be in use as they can all handle/treat it differently.