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

I have just started using AutoHotkey on my Windows 7 and love it but have run into a problem in creating a script to minimize/un-minimize active window. The problem is that the windows command that does that is the windows key + D so in creating the script, the minute I hit the windows key, the start menu lights up and I'm unable to use it as part of the script. What is the solution?

share|improve this question
Can you provide an example script? – iglvzx Mar 19 '12 at 6:48
up vote 3 down vote accepted

If I understand correctly, you are trying to simulate the following keyboard shortcut: Win+D

To do so in AutoHotkey, use the Send command.

You can use the Windows key modifier #:

Send, #d

or you can be explicit:

Send, {LWin Down}d{LWin Up}
share|improve this answer
Thank you so much. I will give it a try. Can you tell me how I can use the left and right arrows as part of a script? I really appreciate knowing that # represents the Windows key. How can I award you points? – Carlos Mar 20 '12 at 2:14
You can accept my answer by clicking the check mark ✓ below the upvote ▲ and downvote ▼ arrows on the left. This will award us both points and let the community know that this question has been answered. Welcome to Super User! :) – iglvzx Mar 20 '12 at 4:45

You must log in to answer this question.

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