This should work:
(mode_tile "tileKey" 1) ; Disable.
(mode_tile "tileKey" 0) ; Enable.
It should work, but how??
I use something like this:
(if (= (get_tile "togglekey") True)
(mode_tile "listboxkey" 1)
(mode_tile "listboxkey" 0))
I tried to do it directly in the main function.
I tried to defun a new function in this way:
(defun DisableList ()
(if
(= (get_tile "togglekey") True)
(mode_tile "listboxkey" 1)
(mode_tile "listboxkey" 0)
)
)
and adding the next line in the main function:
(action_tile "togglekey" "(DisableList)")
I know that something escapes me, but I can't find the failure (my knowledge is still very low).