我尝试编写一些代码来保存和关闭前 7 个图像,如下所示,但是当我执行代码时,DM 仍然询问“关闭前保存更改到 xxx?我需要添加什么命令或代码,然后代码可以自动保存前 7 个图像的更改,而不会弹出任何询问窗口。谢谢
image temp:=getfrontimage()
string imgname=getname(temp)
string currentpath, currentdirectory
if(!SaveAsDialog("Save As",imgname,currentpath))exit(0)
currentdirectory=pathextractdirectory(currentpath,2)
number i
string newname, startstring
for(i=0; i<7; i++)
{
image front:=getfrontimage()
string imgname=getname(front)
string thispath=pathconcatenate(currentdirectory, imgname)
saveasgatan(front, thispath)
hideimage(front)
closeimage(front)
}