Not Getting "SourceURL" When content copied form browser using Clipboard java
I am not able to get the "SourceURL" when Content is copied from any Browser using java.awt.datatransfer.Clipboard, even this information is already available on System Clipboard.
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable t = clipboard.getContents(null);
DataFlavor dfs[] = t.getTransferDataFlavors();
for(DataFlavor df : dfs){
try {
System.out.println(t.getTransferData(df));
} catch (Exception ex) {
ex.printStackTrace();
}
}
Please any one could help me to find "SourceURL"
Not Getting "SourceURL" When content copied form browser using Clipboard java
Hi,
if you are using windows then just copy any content form a browser and then go to run and type "%windir%\system32\clipbrd.exe". You will see there what you have copied, save it with any name from File menu. After that open it in notepad , you will see "SourceURL" of the browser from where you have copied the content.
Thant i wants using Java.
Thanks for your reply.