2013-10-17 16:07 UTC
My idea is, with usage of OpenDCL:
a) set a varable to TRUE - Start an (endless) loop "while 'var = true'"
b) use another lisp which sets the variable to NIL - loop a) will stop
here is the code, with OpenDCL-Buttons:
;;;######################################################################
(defun c: btn_start_OnClicked (/)
(setq runflag 1)
(while runflag
(dos_pause 3)
(if (findfile "ja.txt")
(dos_msgbox "Hier .." "Hauptroutine" 1 3 1)
(dos_msgbox "Weg .." "Hauptroutine" 1 3 1)
)
)
)
;;;######################################################################
(defun c:_btn_stop_OnClicked (/)
(setq runflag nil1)
)
The idea is fine - but worthless, because a second lisp can not be started while the first lisp is still active ....
Any ideas for
- a solution with OpendDCL and DosLib or
- a solution in pure Lisp
a) set a varable to TRUE - Start an (endless) loop "while 'var = true'"
b) use another lisp which sets the variable to NIL - loop a) will stop
here is the code, with OpenDCL-Buttons:
;;;######################################################################
(defun c: btn_start_OnClicked (/)
(setq runflag 1)
(while runflag
(dos_pause 3)
(if (findfile "ja.txt")
(dos_msgbox "Hier .." "Hauptroutine" 1 3 1)
(dos_msgbox "Weg .." "Hauptroutine" 1 3 1)
)
)
)
;;;######################################################################
(defun c:_btn_stop_OnClicked (/)
(setq runflag nil1)
)
The idea is fine - but worthless, because a second lisp can not be started while the first lisp is still active ....
Any ideas for
- a solution with OpendDCL and DosLib or
- a solution in pure Lisp