TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: alanjt on March 16, 2018, 01:59:04 PM
-
(defun *error* (msg)
(if (and msg (not (wcmatch (strcase msg) "*BREAK*,*CANCEL*,*QUIT*,")))
(progn (vl-bt)
(command-s "_.browser" (strcat "https://www.google.com/search?q=\"" msg "\""))
(princ (strcat "\nError: " msg))
)
)
)
-
I like it. :)
-
Certainly with style! :-D
BTW got me thinking is there alternative to open a url with scripting objects instead of:
(command-s "_.browser" (strcat "https://www.google.com/search?q=\"" msg "\""))
-
Fixed.
(defun *error* ( msg )
(if (and msg (not (wcmatch (strcase msg) "*BREAK*,*CANCEL*,*QUIT*,")))
(progn
(vl-bt)
(command-s "_.browser"
(strcat
"https://www.google.com/search?q=site:theswamp.org \""
msg
"\""
)
)
(princ (strcat "\nError: " msg))
)
)
(princ)
)
:-D
-
That's about the truth.
Fixed.
(defun *error* ( msg )
(if (and msg (not (wcmatch (strcase msg) "*BREAK*,*CANCEL*,*QUIT*,")))
(progn
(vl-bt)
(command-s "_.browser"
(strcat
"https://www.google.com/search?q=site:theswamp.org \""
msg
"\""
)
)
(princ (strcat "\nError: " msg))
)
)
(princ)
)
:-D