Jump to content

Recommended Posts

Posted

Howdy.

 

It can access data (copied from a text file or Excel and stored) from the clipboard, using AutoLISP?

 

Thanks in advance.

 

Costin

Posted

Lee's great, thanks a lot for your help.

 

Something like that I looking for.

Posted

I compressed the two functions into one, because they had many common parts :

 

(defun FClipBoardText (text / ClipBoardx htmlFilex result)
(setq ClipBoard (vlax-Get (vlax-Get (setq htmlFile (vlax-Create-Object "htmlFile")) 'ParentWindow) 'ClipBoardData)
      result (if text (vlax-Invoke ClipBoard 'SetData "Text" text) (vlax-Invoke ClipBoard 'GetData "Text")) ) ;_ end of setq
(mapcar 'vlax-Release-Object (list ClipBoard htmlFile))
(if text text result) ;_ end of if
) ;_ end of defun FClipBoardText

 

 

Thanks to MP for the idea.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...