Skip to content

Instantly share code, notes, and snippets.

@dariusz-wozniak
Last active January 15, 2021 22:22
Show Gist options
  • Save dariusz-wozniak/963915650a827307d7f8eaba3fd46227 to your computer and use it in GitHub Desktop.
Save dariusz-wozniak/963915650a827307d7f8eaba3fd46227 to your computer and use it in GitHub Desktop.
Run Slack Minimized (AutoHotkey script)
Run, %USERPROFILE%\AppData\Local\slack\Update.exe --processStart "slack.exe", , Normal
WinWait, ahk_exe slack.exe
Loop, 50
{
WinHide, ahk_exe slack.exe
Sleep, 200
}
@yani
Copy link

yani commented Apr 11, 2019

For me, Slack was installed at "C:\Program Files (x86)\Slack\Slack.exe"

@brian-gates
Copy link

Hi, I tried

Run, %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\slack.exe, , Hide

But it does not work, despite %USERPROFILE%\AppData\Local\Microsoft\WindowsApps\slack.exe working via command line.

Any thoughts why this might be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment