What exactly are you trying to acheive?
Registered forum members do not see this ad.
What would the macro be (not necessarily lisp) for accepting or otherwise "clicking" the OK button of a dialogue box?
"Constantly choosing the lesser of two evils is still choosing evil." ~ Jerry Garcia
flickr | work | blog | creed
rustysilo's tips & tutorials
What exactly are you trying to acheive?
I'm creating a toolbar which calls a lisp file and at the end the lisp initiates a pop-up dialog. I need the code for my toolbar to accept and dismiss the pop-up dialog so I can add to my macro and run other commands.
"Constantly choosing the lesser of two evils is still choosing evil." ~ Jerry Garcia
flickr | work | blog | creed
rustysilo's tips & tutorials
I think you'd be best off learning VBA:
Sub YeaNo()
Dim Answer As String
response = MsgBox("What say; YOu or NAy?", vbYesNo)
If response = Yes Then
Answer = Yes
Else
Answer = No
End If
End Sub
Life is what happens to you while you're busy making other plans.
John Lennon (1940 - 1980)
But all I need to know is how to dismiss this dialogue box. A macro/string of text that would essentially = clicking OK, Esc, or Enter
"Constantly choosing the lesser of two evils is still choosing evil." ~ Jerry Garcia
flickr | work | blog | creed
rustysilo's tips & tutorials
Oh you mean there is a dialog Yes/No that comes from an AUtoCAD Command that you'd like to by-pass? Try EXPERT?
/Petri
Life is what happens to you while you're busy making other plans.
John Lennon (1940 - 1980)
Well it's simply an alert box with an OK button that's part of a lisp file, but more or less the same sort of deal I guess.
I just removed that part from the lisp file so I don't have to figure this out, although it would still be nice to know for future reference.
Thanks.
"Constantly choosing the lesser of two evils is still choosing evil." ~ Jerry Garcia
flickr | work | blog | creed
rustysilo's tips & tutorials
insert in your macro file the alert function
ex.
Code:^C^C(ALERT "HELLO WORLD")
Last edited by wizman; 1st Mar 2008 at 05:52 pm.
No. I don't want to know how to create the alert box. I want to know how to dismiss one. What is the code to dismiss an alert box that pops up as a result of a previous function within the macro coding? Is there a macro code that will do this?
"Constantly choosing the lesser of two evils is still choosing evil." ~ Jerry Garcia
flickr | work | blog | creed
rustysilo's tips & tutorials
Bookmarks