乐筑天下

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

[编程交流] Can we put key commands (eg. c

[复制链接]

48

主题

304

帖子

256

银币

后起之秀

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

铜币
240
发表于 2022-7-5 22:36:17 | 显示全部楼层 |阅读模式
Can we put key commands into lisp, to activate it, for it to work?
 
ctrl (control key)
alt (alternate Key)
shift (shift key)
 
If possible, how would the code for this key commands look like in the lisp?
 
Thanks
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-5 22:54:17 | 显示全部楼层
You cannot define such shortcuts directly by AutoLISP code, but you may solve this by editing the menu definition (check CUI command) and/or the acad.pgp file.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 23:06:30 | 显示全部楼层
If your trying to do a Ctrl+ action you should be able to replicate it in lisp what is it your trying to do ?
回复

使用道具 举报

48

主题

304

帖子

256

银币

后起之秀

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

铜币
240
发表于 2022-7-5 23:28:41 | 显示全部楼层
 
basically to activiate a lisp command.
 
eg.
 
 
Pressing & holding "ctrl" key + "test"
 
Not sure what to write in the command
回复

使用道具 举报

48

主题

304

帖子

256

银币

后起之秀

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

铜币
240
发表于 2022-7-5 23:41:12 | 显示全部楼层
 
Can you elaborate?
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-8-18 12:12 , Processed in 2.063223 second(s), 63 queries .

© 2020-2025 乐筑天下

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