Copy link to clipboard
Copied
I intend to improvise here a kind of window that shows only a message "PROCESSING .... WAIT!" when executing a task through a script. The window has to be of the "Dialog" type and not "Palette" I hate palettes.
It will work this way:
First open the window and then automatically run the main event without closing the window ..... after completing the whole process would execute this line: Dlg.close ();
I do not know if this is crazy of me, but I believe there is some specialist who can show me some possibility.
Type "window" is not suitable instead of "palette"?
var d = new Window("window", "", undefined, {maximizeButton:false, minimizeButton:false, closeButton:true} );
d.add("statictext", undefined, "PROCESSING .... WAIT!");
d.show()
//some comde
//for (var i = 0; i < 100; i++) activeDocument.activeLayer = activeDocument.layers
d.close()
Copy link to clipboard
Copied
Type "window" is not suitable instead of "palette"?
var d = new Window("window", "", undefined, {maximizeButton:false, minimizeButton:false, closeButton:true} );
d.add("statictext", undefined, "PROCESSING .... WAIT!");
d.show()
//some comde
//for (var i = 0; i < 100; i++) activeDocument.activeLayer = activeDocument.layers
d.close()
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Just in CC2018 (on win7 at least) does not work very well. The control flags of the window buttons are ignored. (
Copy link to clipboard
Copied
r-bin escreveu
Just in CC2018 (on win7 at least) does not work very well. The control flags of the window buttons are ignored. (
The button control flags for the window you are referring to, I believe, are those within the red rectangle.
The important thing is the window opens and faccha at the correct time, and this is working very well thanks to your tip. Thank you
Find more inspiration, events, and resources on the new Adobe Community
Explore Now