Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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