AutoIt Maximize current active screen

autoit, automation

Solution

`WinSetState("[ACTIVE]", "", @SW_MAXIMIZE)` will maximize the currently active window.

Problem

Is it possible to run an AutoIt script that will simply maximize the current active window? The window will already be opened, so no need to use the `Run()` function, just need to identify the currently selected screen and maximize it.

Original source