Skip to main content
Inspiring
July 19, 2023
Question

Maximize application window using scripting

  • July 19, 2023
  • 1 reply
  • 309 views

Hi,

 

Does anyone know how to set Adobe Illustrator full screen/maximised using vbScript?

 

 

Set appRef = CreateObject("Illustrator.Application.27")

 

 

Or can this be done using Javascript? The goal is to enlarge the application window BEFORE a document is opened...

 

Thanx

 

 

 

 

This topic has been closed for replies.

1 reply

Sergey Osokin
Inspiring
July 20, 2023

Try to activate the application (if it is open, of course), open the window menu and select Maximize. All this via sendKeys. It worked for me.

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate("Adobe Illustrator")
WshShell.SendKeys "% " ' Send Alt+Space
WScript.Sleep 100
WshShell.SendKeys "{UP}"
WScript.Sleep 100
WshShell.SendKeys "{UP}"
WScript.Sleep 100
WshShell.SendKeys "{ENTER}"