I would like a dialog box to appear when the spindle is started.
For this I wrote the following in M3 Script.

(dlgname,Start From Selected Line, opt=1)
  (dlg,Click OK to continue, typ=label, x=20, w=250, color=0xffa500)
If I start a program, or enter M3 in the MDI, or an M3 command comes in the q-code, it works.
But when I press the spindle start button, it doesn't work, it seems to me that this button switches the output pin directly.