I am looking for a free program that allows me to press a keyboard shortcut, and if certain programs are open (ie. not minimized already), then only them should get minimized.

So, if I had Skype, Microsoft Word and Google Chrome open on my screen, then when I press a shortcut, only Microsoft Word should get minimized (according to pre-defined settings).

I hope I make sense!


  • free
  • keyboard shortcut
  • has settings for which programs should be minimized

You should be able to use AutoHotkey (Free, open-source, Windows), something along the lines of:

Process, Exist, %ExeFile%
PID = %ErrorLevel%
if (PID = 0)

IfWinExist, ahk_pid %PID%
  WinMinimize, ahk_pid %PID%

; list all your programs that you want to minimize here

But the script needs some improvements (namely fixing issue with WinMinimize, ahk_pid %PID% and making sure that all windows of a process gets minimized).

  • autohotkey.com/docs/Tutorial.htm#Create . Right now the script isn't working on my computer, so don't expect much from it... if anyone knows what the issue is, I'm curious. But in theory AHK should be able to do what you're asking for. – Franck Dernoncourt Jul 13 '14 at 15:18
  • Seems like the issue I have my be specific to my computer (stackoverflow.com/q/24724075/395857), so it might work better for you. – Franck Dernoncourt Jul 13 '14 at 15:54
  • OK, I'll be able to test it when I am on my Windows laptop. – ᔕᖺᘎᕊ Jul 13 '14 at 16:01
  • @ṧнʊß Thanks :) yeah I wish I could provide a working script but right now the bug is quite a puzzle to me! – Franck Dernoncourt Jul 13 '14 at 16:03
  • Thanks, it works for me! It's strange how it doesn't work for you... – ᔕᖺᘎᕊ Jul 14 '14 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.