用於關閉模式對話框的按鈕據我了解,最多只有兩個按鈕可以關閉模式對話方塊:「確定」和「取消」(或其他類似名稱的按鈕)。
我想要的是有另一個按鈕可以執行某些操作(例如設定變數),然後關閉對話框,就像我按下“確定”按鈕一樣。像這樣的事情:
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) 使該按鈕按下「確定」按鈕
Names Default To Here(1);
a = 0;
nw = New Window("Demo",
<<MODAL></MODAL>回覆:關閉模式對話框的按鈕謝謝,很好的解決方案!我不知道 Click() 的存在 - 值得記住的一個。