Check if selection exists

To check if there is a selection, look at the Edit menu to see if Copy is enabled:

You can detect a change in the Clipboard if that's what you want. See How to Detect if Clipboard Changes?.

But it isn't clear what you're trying to do.