CMDNAMES and CMDACTIVE variabile in MouseEntered event

Started by Emiliano · 2016-08-06 13:28 UTC · 1 replies · SMF topic #2400

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?
Same question here:
https://www.theswamp.org/index.php?topic=51802.0