乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 172|回复: 12

剪贴板功能

[复制链接]

8

主题

241

帖子

23

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
257
发表于 2005-12-21 11:18:27 | 显示全部楼层 |阅读模式
现在在“下载”[freeones]部分下有一个新的ARX应用程序,它包括以下功能:
(SetClipboardText[String])
(GetClipboardText)
(emptyClipboard)
适用于AutoCAD 2004-2006和垂直行业。
ClipBoard.arx[67KB]
http://www.geometricad.com
最好的问候;
路易斯。

本帖以下内容被隐藏保护;需要你回复后,才能看到!

游客,如果您要查看本帖隐藏内容请回复
回复

使用道具 举报

GDF

37

主题

178

帖子

6

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
325
发表于 2005-12-21 13:52:14 | 显示全部楼层
(start app"clipbrd")
回复

使用道具 举报

194

主题

592

帖子

11

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1380
发表于 2005-12-21 14:15:13 | 显示全部楼层

我不懂....?
我们的想法是为最终用户提供这些新功能,并在他们的lisp例程中直接使用它们,Dale Fugier的DOSlib tm是一款出色的扩展应用程序,但大多数lisp程序员更喜欢小型的3d party应用程序,并且不加载消息...对于所有权问题。
玩得开心。
回复

使用道具 举报

194

主题

592

帖子

11

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1380
发表于 2005-12-21 15:07:31 | 显示全部楼层
谢谢路易斯。
我可以充分利用您的功能。
我已经将它添加到我的mnl文件中:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;自动加载剪贴板应用程序;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;http://www . geometricad . com
;;;作者路易斯·埃斯基维尔;;;剪贴板功能:
;;;用法:(SetClipboardText
)
;;;用法:(GetClipboardText)
;;;用法:(EmptyClipboard)
(defun ARCH:ClipBoard()
(cond((> =(distof(substr(getvar " acad ver ")1 4))16.0)
(if(not(member " ClipBoard . ARX "(ARX)))
(ARX load(findfile(strcat ARCH # SUPF " V _ 16/ClipBoard . ARX)))))
)
(princ))
加里
回复

使用道具 举报

LE3

10

主题

149

帖子

5

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
189
发表于 2005-12-21 21:37:14 | 显示全部楼层

拍打额头
嘟嘟,现在我明白了!
非常感谢路易斯,非常:kewl:
回复

使用道具 举报

Pad

5

主题

30

帖子

3

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
50
发表于 2005-12-21 21:41:44 | 显示全部楼层
下面是一些关于如何使用函数的小示例:
  1. ;; to set some text to the clipboard
  2. _$ (SetClipboardText "This is a way to sent into the ClipBoard some text data")
  3. T
  4. ;; here we can get the text inside the clipboard, coming from any application
  5. _$ (setq string (GetClipboardText))
  6. "This is a way to sent into the ClipBoard some text data"
  7. ;; this will empty the clipboard coming from any application
  8. _$ (EmptyClipBoard)
  9. T

HTH
回复

使用道具 举报

LE3

10

主题

149

帖子

5

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
189
发表于 2005-12-22 18:29:56 | 显示全部楼层
像魅力路易斯一样工作的人。Muchas gracias mi amigo。
回复

使用道具 举报

LE3

10

主题

149

帖子

5

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
189
发表于 2005-12-22 19:01:11 | 显示全部楼层

这是一个很好的例子
回复

使用道具 举报

Pad

5

主题

30

帖子

3

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
50
发表于 2005-12-23 12:31:38 | 显示全部楼层
从不上传这些函数的源代码,在代码丢失之前,这里只是以防万一:
  1. //-----------------------------------------------------------------------------
  2. //----- acrxEntryPoint.h
  3. //-----------------------------------------------------------------------------
  4. #include "StdAfx.h"
  5. #include "resource.h"
  6. //-----------------------------------------------------------------------------
  7. #define szRDS _RXST("LESQ")
  8. //-----------------------------------------------------------------------------
  9. //----- ObjectARX EntryPoint
  10. class Cclipboard17App : public AcRxArxApp {
  11. public:
  12.         Cclipboard17App () : AcRxArxApp () {}
  13.         virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt) {
  14.                 // TODO: Load dependencies here
  15.                 // You *must* call On_kInitAppMsg here
  16.                 AcRx::AppRetCode retCode =AcRxArxApp::On_kInitAppMsg (pkt) ;
  17.                
  18.                 acutPrintf(_T("\n\nClipBoard Functions:"));
  19.                 acutPrintf(_T("\nUsage: (SetClipboardText )"));
  20.                 acutPrintf(_T("\nUsage: (GetClipboardText)"));
  21.                 acutPrintf(_T("\nUsage: (EmptyClipboard)\n\n"));
  22.                 return (retCode) ;
  23.         }
  24.         virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt) {
  25.                 // TODO: Add your code here
  26.                 // You *must* call On_kUnloadAppMsg here
  27.                 AcRx::AppRetCode retCode =AcRxArxApp::On_kUnloadAppMsg (pkt) ;
  28.                 // TODO: Unload dependencies here
  29.                 return (retCode) ;
  30.         }
  31.         virtual void RegisterServerComponents () {
  32.         }
  33. public:
  34.         // ----- ads_setclipboardtext symbol (do not rename)
  35.         static int ads_setclipboardtext(void)
  36.         {
  37.                 struct resbuf *rb=acedGetArgs();
  38.                 LPCTSTR pszText;
  39.                 // temp string just for testing
  40.                 CString tmp;
  41.                 // get the argument
  42.                 if (rb && (rb->restype==RTSTR)){
  43.                         pszText=rb->resval.rstring;
  44.                         rb=rb->rbnext;
  45.                         tmp=pszText;
  46.                 }
  47. ...

下载以下完整的源代码:
回复

使用道具 举报

194

主题

592

帖子

11

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1380
发表于 2005-12-23 13:02:14 | 显示全部楼层
嗨,LE
你能上传arx吗?
http://www.geometricad.com/网站似乎不再。
谢谢
P
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-6-2 00:08 , Processed in 1.411007 second(s), 73 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表