topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 3:48 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: use hotkey to minimize the active window  (Read 14519 times)

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,260
    • View Profile
    • Donate to Member
DONE: use hotkey to minimize the active window
« on: December 01, 2005, 08:21 AM »
Cross-post from https://www.donation...index.php?topic=1638 :

I did try Autohotkey some time ago, but the only thing I needed at the moment was minimizing currently active window on hotkey. I didn't find how to do it with Autohotkey in an hour, so now using Hotkeycontrol XP, which in fact has this function right out-of-the-box. Although, I open for suggestions on how to do this with Autohotkey.

I'm sure skrommel is able to come up with the code for this with the blink of an eye :)

I'd also like to add the code to my main script, there are times when this might come in handy!

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: use hotkey to minimize the active window
« Reply #1 on: December 01, 2005, 09:45 AM »
 :) Ctrl-M minimizes the active window.

^m::WinMinimize,A

Skrommel

wasker

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 52
    • View Profile
    • Donate to Member
Re: IDEA: use hotkey to minimize the active window
« Reply #2 on: December 01, 2005, 11:13 AM »
Mmmm. Lovely. Thanks, guys! :)

The only question. I have a program that minimizes itself to tray. Neither Hotkeycontrol XP nor Autohotkey with this fantastic script can minimize it properly -- it always minimizes to taskbar. Although when I click Minimize button in window it does everything properly.

Any ideas on how to overcome this issue with Autohotkey? Any pointers too look for appreciated.

Thanks again!

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: use hotkey to minimize the active window
« Reply #3 on: December 01, 2005, 01:16 PM »
 :) You could use something like

^m::
IfWinActive,titleoftroublesomeprogram
  MouseClick,xposofminimizebutton,yposofminimizebutton
Else
  WinMinimize,A

Skrommel

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,260
    • View Profile
    • Donate to Member
Re: IDEA: use hotkey to minimize the active window
« Reply #4 on: December 01, 2005, 02:32 PM »
I'm sure skrommel is able to come up with the code for this with the blink of an eye :)

:) Ctrl-M minimizes the active window.

^m::WinMinimize,A
Ha! I knew it!! :D Thanks!