只需一步,快速开始
如何让cad vba中知道我连续二次按下"esc"钮..
而自动跳开funtion呢??
使用道具 举报
关于该问题有个api函数
Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As IntegerPrivate Const VK_ESCAPE = &H1B
.......
If GetAsyncKeyState(VK_ESCAPE) Then........
End If
我用了一下~~
key不能放於此第一行会无动作!
input integer 1
input integer 2
input integer 3
若放於第三行则在第一或第二行有esc key动作时查不出来仍继续执行下行
若想要1 or 2 or 3 行任一行有esc key时即动作要如何修改呢??
不应是每行下都放一个吧?!!??
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-2-22 05:29 , Processed in 0.146617 second(s), 24 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.