明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: highflybir

[【高飞鸟】] 【飞鸟集】快速搜索和浏览收藏夹中的地址

    [复制链接]
发表于 2012-7-24 17:26 | 显示全部楼层
请教一下:按搜索后,能否自动关闭对话框?
因为按搜索以后的操作就不在CAD上了。不知可否?
发表于 2012-7-24 18:10 | 显示全部楼层
669423907 发表于 2012-7-24 17:26
请教一下:按搜索后,能否自动关闭对话框?
因为按搜索以后的操作就不在CAD上了。不知可否?

;;;把下面的这段代码加个(DONE_DIALOG)即可

  1. (defun GoogleIt (Scopes / Index Keywords scope url browser scopeName)
  2.   (setq Index (read (get_tile "Scopes")))
  3.   (setq keywords (get_tile "Keywords"))
  4.   (setq scope (nth Index scopes))
  5.   (setq url (vl-string-subst (notrailspace (noleadspace keywords)) "{searchTerms}" (cdr scope)))
  6.   (setq Browser (GetDefaultBrowser))
  7.   (setq scopeName (car scope))
  8.   (cond
  9.     ( (= scopeName "百度")
  10.       (startapp browser (strcat "http://www.baidu.com/s?wd=" keywords))                ;很无奈!不然的话,对中文关键字搜索会有问题哦?
  11.     )
  12.     (t
  13.       (startapp browser url)
  14.     )
  15.   )
  16.   (DONE_DIALOG)
  17. )

点评

非常感谢大师!  发表于 2012-7-24 18:43
发表于 2012-7-24 20:04 | 显示全部楼层
.. 仰止!!!
发表于 2012-7-26 12:27 | 显示全部楼层
仰止!!!!
发表于 2012-7-26 15:56 | 显示全部楼层
请教一下,普通DCL 文件,你是如何弄成dialogdata形式的?
发表于 2012-7-26 17:40 | 显示全部楼层
自贡黄明儒 发表于 2012-7-26 15:56
请教一下,普通DCL 文件,你是如何弄成dialogdata形式的?

可参考这个帖子.
http://bbs.mjtd.com/thread-92336-1-1.html
发表于 2012-7-26 18:14 | 显示全部楼层
高,实在是高
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-2 13:21 , Processed in 3.400767 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表