This is only for Windows
OS!!
In C++ :
Use GetData
by using namespace
of Systems.Windows
See this link http://msdn.microsoft.com/en-us/library/system.windows.clipboard.aspx
And for python, you can use gtk
or Pygtk
libraries to do the same task! For example:
gtk.Clipboard()