Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way I can specify for a particular application to never be hidden when I press Windows Key+D or click show desktop in Windows 7?

share|improve this question
why do you want to do that? – akira Jun 7 '10 at 11:35
up vote 4 down vote accepted

There is no easy way to do this or an application that provides the functionality you need. The direction i would take is writing a small AutoIT script with a infinite loop making the window constantly active.

Example 1

    While 1
      For $i = 1 To 100
    WinActivate("[CLASS:Notepad]", "")

*This example will keep the window class "Notepad" continually active even if the show desktop button is clicked WinActivate focuses on the window specified. I have added a sleep of 100MS so as not to use 100% CPU usage.

Depending on the language used to create the application that would not hide on "show desktop" one could hook the *form_resize* event (In VB6 Language) and if triggered show the application window as this is triggered on win+d or "Show Desktop".

I would just create a small script in Autoit (the easiest solution).

Good Luck

EDIT: As "Bavi_H" suggested, one could also continually set the "Window" state as "Restored" by replacing the following

WinActivate("[CLASS:Notepad]", "")


WinSetState("[CLASS:Notepad]", "", @SW_RESTORE)
share|improve this answer
WinActivate keeps Notepad active, but prevents you from using any other window. To just keep Notepad open, try using this instead: WinSetState("[CLASS:Notepad]", "", @SW_RESTORE) – Bavi_H Jun 8 '10 at 2:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .