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(); }