PDA

View Full Version : setting app window to maximized


Graeme Hackston
04-04-2003, 02:56 AM
I'm opening PhotoShop and running tasks in it from an hta using JS/activeX. PS can be ran just like MS programs such as Excel.

My problem is I can't get PS to open maximized. I can open it with this which does maximize it but I can't refer to it after it's open


objPS = new ActiveXObject("WScript.Shell").Run("C:\\PROGRA~1\\ADOBE\\PHOTOS~1.5\\PHOTOSHP.EXE",3,false)


I can open it with this and refer to it but can't maximize the widow.


objPS = new ActiveXObject('Photoshop.Application')


I've found a hack by opening the PS file "photos55.ini" and changing the Window_Pos property to what I want but I'm hoping there's a better way?