FAQ: Why does AutoCAD not receive focus after Visual LISP turns over control? (Visual LISP IDE)
If AutoCAD is minimized when Visual LISP turns control over to it, you must manually restore and activate the AutoCAD window to continue. Visual LISP does not restore the AutoCAD window automatically for you.
Note: The Visual LISP IDE is available on Windows only.