Slack – Enable Minimize App on window 10

Hey all.

If anyone interested, I share this little script made with AutoIt, which allows you to click on the minimize button of the App on Windows 10.

You can download the Executable there « Slack_Minimizer.exe », then add it to your Startup directory (Win+R : Shell:startup and Paste it here)

Or compile it yourself with AutoIt.

Slack_Minimizer

 

#include <Misc.au3>
;Script enables minimize slack window.
Opt("MouseCoordMode", 0) ;1=absolute, 0=relative, 2=client

While 1
 If WinActive("Slack") Then
   $pos = MouseGetPos()
   If ($pos[0] >=1020 AND $pos[0] <1060) AND ($pos[1] >=0 AND $pos[1] <32) Then
     If _IsPressed(01) Then WinSetState("Slack","",@SW_MINIMIZE)
     Sleep(2)
   Else
     Sleep(20)
   EndIf
 Else
   Sleep(500)
 EndIf
WEnd

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *