Costinbos77 Posted March 2, 2014 Posted March 2, 2014 Howdy. It can access data (copied from a text file or Excel and stored) from the clipboard, using AutoLISP? Thanks in advance. Costin Quote
Costinbos77 Posted March 2, 2014 Author Posted March 2, 2014 Lee's great, thanks a lot for your help. Something like that I looking for. Quote
Lee Mac Posted March 2, 2014 Posted March 2, 2014 You're welcome - Michael is a talented programmer Quote
Costinbos77 Posted March 3, 2014 Author Posted March 3, 2014 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. Quote
Recommended Posts
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.