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.

When I press Enter I first want to take a screenshot of the current Window using Greenshot, which listens to Ctrl+PrtScn, then I want the Enter command to work as usual.

When I press Enter I want to:

  1. Wait 1 second
  2. Alt+PrtScn
  3. Wait 1 second
  4. Enter

If it matters I mean the Enter key above Shift, not the one on the numeric keyboard. But if it complicates things remapping both of them is fine too!

share|improve this question

1 Answer 1

up vote 1 down vote accepted
$Enter::                ; $ Modifer needed as script sends Enter, to not trigger itself
  sleep, 1000           ; Wait 1 second
  send !{PrintScreen}   ; ! modifier equals Alt
  sleep, 1000
  send {Enter}
  return
share|improve this answer

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.