嗨,我试图将用户输入引用为脚本中 MFI 的名称过滤器,但当我运行脚本时,它似乎先运行 MFI 部分,然后再打开用户输入窗口。有人能帮忙指出哪里出了问题吗?非常感谢!
Names Default To Here(1);
win = New Window( "Set the Value",
H List Box( Text Box( "Set this value" ), num_edit_box1 = Text Edit Box( "lot" ) ),
H List Box(
Button Box( "OK",
//store results in jsl variables
num_input = num_edit_box1 << get text();
//close the window
//wait until you've unloaded the input boxes before you closing
//or else they'll be gone
win << close window;
//now do whatever work you want with the inputs
Show( num_input );
Print( num_input );
),
//a cancel button that closes the window and doesn't store store the results
Button Box( "Cancel", win << close window )
)
);
Multiple File Import(
<<SET folder=""></SET>
<BR />