我只是明经的搬运工!![](source/plugin/imc_colorcode/images/loading.gif)
- (defun AlertX (String nSeconds / WSH RetVal)
- (setq WSH (vlax-create-object "WScript.shell"))
- (setq RetVal (vl-catch-all-apply 'vlax-invoke-method (list WSH 'Popup String nSeconds "" 48)))
- (if (vl-catch-all-error-p RetVal)
- (alert String)
- (vlax-release-object WSH)
- )
- RetVal
- )
- 我写了上面一个alertx函数,
- 函数名:AlertX
- 参数1:字符串;参数2:超时秒数(整数)
- 返回值:1(点击了确定),-1 (超时)
- 示例:(alertx "test123" 2)
|