If the windows key isn't working out for you - here is another idea -
Doing some checking on how the "Show Desktop" command works on my computer, and some searching on google - I found you could execute the "Show Desktop" command through the Java Runtime.exec() method.
First I went properties of the "Show Desktop" shortcut on my quicklaunch toolbar - this goes to a .scf file that you can edit - it contains some cryptic stuff - but looks easy enough to understand. I did a search on .scf files - they are some kind of proprietary Microsoft command scripting for Explorer. The .scf file in your quicklaunch directory shows you exactly the command needed to clear the desktop - but now you have to get explorer to run it...
First, I tried to just pass it to explorer - but this causes a big, ugly "Warning! You may be downloading something dangerous!... etc. etc." sort of dialog to display before giving a choice to run it or not. It does work if you push "Open" and choose to run it, but this isn't a good way to go about this...
Next, I found that by default all windows machines make the default program associated with .scf files explorer - so I looked up some code I remembered seeing about executing programs associated with file types in windows through Java's Runtime.exec()... Here's a discussion on the Sun Java Forums about it. Be sure to have some code to choose the command format appropriate to your OS version.
I copied the "Show Desktop.scf" into the local directory, renamed it to "myshow.scf", and was able to minimize all windows by typing
on the command-line. No annoying warning dialog this time! Success!
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
For your quick response, but it's not working on my Machine.
Infact I am not able to see any this type of .scf. Which .scf I found was explorer.scf, Which usage is well known and right now it's not usefull for me. Could anyone suggest me some other alternative to track Window key on Windows System with Microsoft compatible KeyBoards...