利用前辈写的函数,具体是谁写的不知道了。
- (defun c:11 (/ str get-clip-string)
- (defun get-clip-string (/ html result)
- (and (setq html (vlax-create-object "htmlfile"))
- (setq result (vlax-invoke
- (vlax-get (vlax-get HTML 'PARENTWINDOW)
- 'CLIPBOARDDATA
- )
- 'GETDATA
- "Text"
- )
- )
- (vlax-release-object html)
- )
- result
- )
- (setq str (get-clip-string))
- (princ (strcat "\n剪贴板内容<"str ">"))
- (princ)
- )
|