First of all, its a windows question. Let me introduce you to the linux counterpart.
In Linux, when I select a text anywhere in X Windows System, its gets copied to PRIMARY clipboard.
Selecting a clipboard & explicitly copying it using Ctrl+C causes it to be copied to secondary keyboard.
In linux, I made a dictionary that automatically searches for word that is selected in current window. For that, I just copied the value of primary clipboard.
What's the equivalent of PRIMARY selection in windows? I want to retrieve the current selection in the current window using python.