Pop-up Box close automatically

Pop-up Box close automatically

C.Utzinger
Collaborator Collaborator
859 Views
1 Reply
Message 1 of 2

Pop-up Box close automatically

C.Utzinger
Collaborator
Collaborator

HI

 

I have These Pop-up function from Lee Mac and looking for a Pop-up Window wich closes automatically after a few seconds.

 

Is that possible?

 

 

(defun LM:popup ( ttl msg bit / wsh rtn )
    (if (setq wsh (vlax-create-object "wscript.shell"))
        (progn
            (setq rtn (vl-catch-all-apply 'vlax-invoke-method (list wsh 'popup msg 0 ttl bit)))
            (vlax-release-object wsh)
            (if (not (vl-catch-all-error-p rtn)) rtn)
        )
    )
)

 

BR

0 Likes
860 Views
1 Reply
Reply (1)
Message 2 of 2

Ranjit_Singh
Advisor
Advisor

May be change the 0 to how many seconds you wish to wait before the popup closes. 

........
(list wsh 'popup msg 3 ttl bit) ; wait 3 seconds
.........
0 Likes