canceling (SSGET)

Started by masoud_123 · 2012-06-18 07:47 UTC · 2 replies · SMF topic #1815

Hi
Could you please help me, How can I cancel "Select Object" prompted by (SSGET) by pressing a button? Like Cancelling it by pressing
"ESCAPE" key from keyboard?

I write this code but it doesn't work.

(defun c:CancelButton_OnClicked (/)
  (command)
)
The simplest way is to change your button's OnClicked event to ^C^C instead of a function name.
Try


(defun c:CancelButton_OnClicked (/)
  (dcl_SendString "(chr 27)(chr 27)\n")
)