Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
bedibra
Posted - 08/30/2017 : 04:38:59 AM Dear all, I am looking for a way to insert a yes or no dialog box. if yes then run the yes script. if no then run the no script. if possible also, I want an other dialog (after hitting the yes button and running the draw script) asking me to move the rectangle and wait for an OK click to run the crop script. thanks in advance.
Yes script: //draw rectangle: draw -n rect -b; rect.x=0; rect.y=0; rect.dx=50; rect.dy=50; rect.color=color(red); rect.fillcolor = 0; //crop and get the mean of the rectangle: mcrop x:= rect.x y:= rect.y w:= rect.dx h:= rect.dy im:= [job1]job1 om:= [job1]job2; mstats im:=[job1]job2 mean:=mymean; mymean=; layer -d [job1]job2; range rd=[Book1]Sheet1!1[1:1]; rd=mymean; No script: range rd=[Book1]Sheet1!1[1:1]; rd=0;