关闭模式对话框的按钮据我了解,最多只有两个按钮可以关闭模式对话框:“确定”和“取消”(或其他类似名称的按钮)。
我希望有另一个按钮可以执行某些操作(例如,设置变量),然后关闭对话框,就像我按下了“确定”按钮一样。如下所示:
Names Default To Here( 1 );
a=0;
nw = New Window( "Demo",
<<MODAL></MODAL>
Is there any way of doing this? I tried including "nw << close window" in the button script but that didn't work.
I could use a text edit box, or a check box, or many other options to set a=1 before pressing "OK", but all of those are additional clicks.
Thanks!
<LINGO-LABS id="lingo-labs-827874" slang="en-US" mode="CREATE"><LINGO-LABEL>自动化和脚本</LINGO-LABEL></LINGO-LABS>回复:关闭模式对话框的按钮您可以使用 << Click(1) 使该按钮按下 OK 按钮
Names Default To Here(1);
a = 0;
nw = New Window("Demo",
<<MODAL></MODAL>回复:关闭模式对话框的按钮谢谢,很好的解决方案!我不知道 Click() 的存在 - 值得记住。