OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on August 06, 2016, 06:28:16 AM

Title: CMDNAMES and CMDACTIVE variabile in MouseEntered event
Post by: Emiliano on August 06, 2016, 06:28:16 AM
Hi,
I'm using OpenDCL.
Within a ControlBar I put an event "MouseEntered".

I want to prevent the MouseEntered event's operation when there is an active command.
To do this I checked the variable (if (= (getvar "CMDNAMES") "")..... and also CMDACTIVE
I want to prevent the event activation 'MouseEntered' even during the execution of a LISP function c:CommandName.

Unfortunately (getvar "CMDNAMES") returns "" when a LISP command is running.
Unfortunately (getvar "CMDACTIVE ") returns 0 when a LISP command is running.

How can I determine if a lisp function running?
Title: Re: CMDNAMES and CMDACTIVE variabile in MouseEntered event
Post by: roy_043 on August 08, 2016, 06:39:20 AM
Same question here:
https://www.theswamp.org/index.php?topic=51802.0