- (setq s
- ";;-------------------------=={ Popup }==----------------------;;
- ;; ;;
- ;; Displays a pop-up message box prompting the user. ;;
- ;;------------------------------------------------------------;;
- ;; Author: Lee Mac, Copyright © 2012 - www.lee-mac.com ;;
- ;;------------------------------------------------------------;;
- ;; Arguments: ;;
- ;; title - Text to be displayed in the pop-up title bar ;;
- ;; msg - Text content of the pop-up message box ;;
- ;; flags - Integer indicating icon & button appearance ;;
- ;; Reference: http://lee-mac.com/popup.html ;;
- ;;------------------------------------------------------------;;
- ;; Returns: Integer indicating the button pressed to exit ;;
- ;;------------------------------------------------------------;;
- (defun LM:Popup ( title msg flags / wsh res )
- (if (setq wsh (vlax-create-object "wscript.shell"))
- (progn
- (setq res (vl-catch-all-apply 'vlax-invoke-method (list wsh 'popup msg 0 title flags)))
- (vlax-release-object wsh)
- (if (null (vl-catch-all-error-p res))
- res
- )
- )
- )
- )"
- )
- (LM:Popup "test" s 1)
|