Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

How to Minimize Window Dialog

$
0
0

I'm creating a dialog window for PS CS6. Is there any way to minimize the window and then do some work in photoshop, once that gets completed bring back the same minimized window (other way round maximize window) when the user presses a predefined keys ? Is this possible ?

 

app.preferences.rulerUnits = Units.PIXELS;
var guides=app.activeDocument.guides;
var win = new Window ('dialog', 'Dialog Name');
win.grpButtons = win.add('group');
win.grpButtons.orientation='column'
win.grpButtons.alignChildren = 'fill';
win.grpButtons.pnl1 = win.grpButtons.add('button', undefined, 'Step1');
win.grpButtons.pnl2 = win.grpButtons.add('button', undefined, 'Step2');
win.grpButtons.pnl3 = win.grpButtons.add('button', undefined, 'Step3');
win.grpButtons.pnl4 = win.grpButtons.add ('statictext', undefined, 'Click on the steps to proceed');
win.size = {width: 240, height: 150}
var result = win.show();
win.grpButtons.pnl1.onClick=function(){
var result1 = win.minimize();
app.bringToFront();        }

Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>