Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Maximize application window using scripting

Contributor ,
Jul 19, 2023 Jul 19, 2023

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

 

 

 

 

TOPICS
How-to , Scripting
258
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Enthusiast ,
Jul 20, 2023 Jul 20, 2023
LATEST

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}"
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines