<p>This is a bit of a long shot, but if anyone can figure it out, you guys can...</p>

<p>In Windows XP, is there any meta-data that comes with a cut and paste action, from which I can ascertain the application that provided the clipboard contents?</p>

<p>Bonus question... if there is such information, is there any way I can access it through a Java app?</p>

[{'answer_id': 21214, 'author': 'Stu', 'author_id': 414, 'author_profile': 'https://Stackoverflow.com/users/414', 'pm_score': 2, 'selected': True, 'text': '<p>That depends on the clipboard format. If it is plain-text, then no. Unless you want to install global hooks on the clipboard.</p>\n\n<p>Which you cannot do from Java.</p>\n'}, {'answer_id': 21443, 'author': 'PabloG', 'author_id': 394, 'author_profile': 'https://Stackoverflow.com/users/394', 'pm_score': 2, 'selected': False, 'text': '<p>The API function GetClipboardOwner returns the clipboard owner \n(<a href="http://msdn.microsoft.com/en-us/library/ms649041(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms649041(VS.85).aspx</a>), -sorry cannot mark as link because the "()" in the URL-</p>\n\n<p>Don\'t know Java, I suppose you can call native API functions from inside the Java VM.</p>\n\n<p>A "quick and dirty" approach could be using an <a href="http://www.autohotkey.com/" rel="nofollow noreferrer">AutoHotKey</a> script to intercept the <kbd>CTRL</kbd>+<kbd>C</kbd> / <kbd>CTRL</kbd>+<kbd>INS</kbd> hotkeys, grab the id of the active process (in a file or any place that can be accessed by the Java app) and proceed with the clipboard copy. The AutoHotKey part shouldn\'t be difficult, don\'t know about the Java part.</p>\n'}]
['https://Stackoverflow.com/questions/21211', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2197/']