This is the basics, copy to clipboard, copy from clipboard
;;Copy text to clipboard
;; (vlax-invoke (vlax-get (vlax-get (vlax-create-object "htmlfile") 'ParentWindow) 'ClipBoardData) 'setData "TEXT" --MYTEXTSTRING-- )
;;(vlax-release-object html) ;;and release the object
;;Get text from clipboard
;;(vlax-invoke (vlax-get (vlax-get (vlax-create-object "htmlfile") 'ParentWindow) 'ClipBoardData) 'getData "TEXT" )
;;(vlax-release-object html)
and put together in a LISP, set clip board text and get clip board text
(defun SetClipBoardText ( MyText / htmlfile result )
(vlax-invoke (vlax-get (vlax-get (setq htmlfile (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'setData "Text" Mytext)
(vlax-release-object htmlfile)
(princ)
)
(defun GetClipBoardText ( / htmlfile result )
(setq result (vlax-invoke (vlax-get (vlax-get (setq htmlfile (vlax-create-object "htmlfile")) 'ParentWindow) 'ClipBoardData) 'getData "Text"))
(vlax-release-object htmlfile)
result
)