on minimize

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
RunarSF
Posts: 27
Joined: 01 Jul 2017, 11:48
Location: Norway
Contact:

on minimize

14 Mar 2018, 07:42

How can I run a script when the minimize button is clicked on a window? (not when a window loses focus)
There are two kinds of people in the world: those who can extrapolate from incomplete data.
Guest

Re: on minimize

14 Mar 2018, 07:46

https://autohotkey.com/boards/viewtopic.php?t=830 with EVENT_SYSTEM_MINIMIZESTART as the specified event might work.
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: on minimize

14 Mar 2018, 07:51

Use WinGet, OutPutVar, Minmax [,WinTitle, WinText, ExcludeTitle, ExcludeText]
OutPutVar will be
-1: The window is minimized.
1: The window is maximized.
0: The window is neither minimized nor maximized.

Put it in a SetTimer.
I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Mateusz53, MrHue, mstrauss2021, Rohwedder, Spawnova and 308 guests