topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Sunday December 15, 2024, 12:45 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: Close window with mouse  (Read 7045 times)

plutokang

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Close window with mouse
« on: December 11, 2009, 01:11 PM »
Hallo,
one of the functions most used by me is "close window", Alt+F4.
To position the cursor with the mouse to the small X in the right corner takes time,
so I am looking for a faster way.
A great solution would be a click with both, left and right mouse buttons together.

I know there are mouse drivers to support that, but they need a lot of resident memory.
A small program may be the better way. What do you think?
Thanks
Jürgen


skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: Close window with mouse
« Reply #1 on: December 11, 2009, 02:14 PM »
A great solution would be a click with both, left and right mouse buttons together.
I know there are mouse drivers to support that, but they need a lot of resident memory.
A small program may be the better way.

Give RockerClose try:  Download (source/binary included)

Make sure the app you want closed is the focused app and then do a "right-click hold then left click" action.  That type of action is called a rocker action.  It's just a simple hotkey so you can easily incorporate it into your main AutoHotkey script if you run one.  Here's the code:

Code: AutoIt [Select]
  1. #NoTrayIcon
  2. #NoEnv
  3. #SingleInstance, Force
  4. SetWorkingDir, %A_ScriptDir%
  5. DetectHiddenWindows, On
  6.  
  7. ~RButton & LButton Up::
  8. {
  9.     WinClose, A
  10. }

plutokang

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: Close window with mouse
« Reply #2 on: December 12, 2009, 06:03 AM »
Thank you skwire, super, works very well, that's what I need. Jürgen

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 689
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: Close window with mouse
« Reply #3 on: December 12, 2009, 06:09 AM »
plutokang: You might want to try StrokeIt. One of the standard gestures that comes w/ it is drawing a C to close the current active window. You hold your right mouse button down and draw C anywhere on the active window and it gets closed.
<a href="https://sridharkatakam.com">My blog</a>

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,287
    • View Profile
    • Donate to Member
Re: Close window with mouse
« Reply #4 on: December 12, 2009, 06:29 AM »
Thank you skwire, super, works very well, that's what I need. Jürgen

You're welcome.  I'm glad to help.

plutokang

  • Participant
  • Joined in 2009
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: Close window with mouse
« Reply #5 on: December 13, 2009, 06:06 AM »
Hallo sri, strokeit is also very good, uses in my system only 188 K Memory.
And can perform a lot of additional functions, thank you.