如何获知打印时按了键?
<p>即调用CAD自带打印程序,如何截获点击了界面上的<取消>键信息?以前看过一篇文章介绍,但当时试过不好用。</p><p>不知有没有高手知道怎么办?</p> Sub test()Dim str
ThisDrawing.SendCommand "plot" & vbCr
str = ThisDrawing.GetVariable("lastprompt")
If str = "命令: plot" Then MsgBox "按了取消键!"
End Sub
页:
[1]