I'm trying to implement a feature by which the user can directly copy a piece of text into a specific file. (mini-clipboard type)
The first thing I researched about was of creating a universal context menu by which the user can select(/mark) the text he wants to copy to that file and then select a specific universal option (eg. Save to ..). But I then later realized that all applications have their own context menu so it is practically impossible to anything of that sort.
The next thing that came into my mind was of using custom shortcut to copy some text into a specific file,
Is there any way to get the current selected text, create a shortcut to that specific batch file and pass then selected text as a parameter to that batch-file?
We could use a text file as a temp storage for the current contents of the clipboard but the main question is how would I copy the content by just using one shortcut?