Force postman to launch maximized / full screen mode on windows

Hello, I have written a script (in python) to force Postman enter full screen mode when started.

import subprocess
import pyautogui
import time
import pygetwindow as gw

subprocess.call("Your\\Path\\Postman\\postman.exe")
time.sleep(7)
win = gw.getWindowsWithTitle('Postman')[0]
win.activate()
pyautogui.press('f11')

It is ‘stupid’, but it works for me.
For maximize the window instead of use

pyautogui.press('f11')

use

win.maximize()

After that, I have also built the script with pyinstaller, but this is optional.
I hope that it could be helpful for someone (and sorry for my english).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.