AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MButton: Close windows(taskbar+titlebar) & open IE links
Goto page Previous  1, 2
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
ttrickyy



Joined: 18 Jun 2008
Posts: 20

PostPosted: Thu Aug 21, 2008 3:10 pm    Post subject: Reply with quote

ttrickyy wrote:
Someguy! wrote:
The taskbar middle click function does not work on vista. I tried fooling around with the code myself with no luck. Any ideas on how to make it work?


I messed around with it for about five minutes and found that if I move the section commented "Close window with titlebar click" under the section titled "Close taskbar program click" it works. I am not sure why, but I really don't mind.


I say that, but it seems to have problems with middle-clicking maximized windows on dual monitors under Vista. I will keep investigating and update with what I find.
_________________
ttrickyy
Back to top
View user's profile Send private message
Larkku
Guest





PostPosted: Sun Sep 07, 2008 12:12 pm    Post subject: Reply with quote

Anyone have a clue how to make this work with QTTabBar? Ever since I installed it, I haven't been able to close Windows Explorer windows with this script. Confused
Back to top
Larkku
Guest





PostPosted: Sun Sep 07, 2008 12:17 pm    Post subject: Reply with quote

...from the taskbar, that is. Middle clicking the title bar works as usual.
Back to top
Larkku
Guest





PostPosted: Sun Sep 07, 2008 12:22 pm    Post subject: Reply with quote

And I'm also posting in the wrong thread, it's another (though similar) script I'm using. I'll get me coat. Embarassed
Back to top
bandittm



Joined: 18 Nov 2008
Posts: 10

PostPosted: Sat Nov 29, 2008 7:28 am    Post subject: Reply with quote

Any chance to make it work with Firefox instead of IE? Smile
Back to top
View user's profile Send private message
szekelya



Joined: 15 Dec 2008
Posts: 13

PostPosted: Tue May 05, 2009 3:02 pm    Post subject: Reply with quote

In Vista WM_NCHITTEST_Result will be 2 also if you midclick a taskbar button, so you have to exclude the taskbar from the "Close window with titlebar click" section.

A way to do it is like this:

Code:

; Close window with titlebar click
  IfWinNotActive, ahk_class Shell_TrayWnd
{
  If WM_NCHITTEST_Result in 2,3,8,9,20,21 ; in titlebar enclosed area - top of window
    {
    PostMessage, 0x112, 0xF060,,, ahk_id %WindowUnderMouseID% ; 0x112 = WM_SYSCOMMAND, 0xF060 = SC_CLOSE
    Return
    }
}
Back to top
View user's profile Send private message
hannaxbear
Guest





PostPosted: Tue Jun 09, 2009 4:29 am    Post subject: Reply with quote

Did anyone get this to work properly in Vista? I tried changing the code to what some other posters in this thread suggested but it doesn't work...
Back to top
Learning one



Joined: 04 Apr 2009
Posts: 1000
Location: Croatia

PostPosted: Sun Oct 25, 2009 12:32 pm    Post subject: Reply with quote

evl, your script is fantastic! Thank you.
Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message Visit poster's website
BenBenBen
Guest





PostPosted: Wed Dec 30, 2009 9:29 pm    Post subject: Intel Laptops Reply with quote

I have an intel laptop: it has an ultra-nav feature for the middle click button, where if you middle click and hold it will scroll you up and down. This is a really great feature, although unfortunately it prevents there from being a "normal" middle click and this script doesn't work, even with this feature of ultra-nav disabled. Thoughts? Thanks! I think this would be a great feature to have!
Back to top
chessonly



Joined: 06 Feb 2005
Posts: 26

PostPosted: Thu Dec 31, 2009 8:26 am    Post subject: Reply with quote

this script works well , but it interferes with other middle mouse button functions of the application powerpro. In powerpro I have set middlemousebutton hold to display a menu. When this script is running that menu doesn't show up.
Any way to fix that ?
Back to top
View user's profile Send private message
Raine



Joined: 28 May 2009
Posts: 4

PostPosted: Sun Jan 03, 2010 5:13 am    Post subject: Reply with quote

Can anyone make it so when you mouse down on the titlebar it minimizes?
Back to top
View user's profile Send private message
matej64
Guest





PostPosted: Thu May 13, 2010 11:13 am    Post subject: Reply with quote

It worked great in XP, but ever since I switched to Windows 7, middle-clicking on the task bar brings up the Shut down window.
Any way around that?
Back to top
Guest






PostPosted: Sat Sep 04, 2010 11:04 am    Post subject: Reply with quote

Same problem here.

Is there any way around this?
Back to top
wiedzmin
Guest





PostPosted: Fri Jan 21, 2011 7:08 pm    Post subject: Vista/Win7 Fix Reply with quote

In Vista/Win7 just add a bit of a delay and Enter for the Close option to be selected in the popup menu:

Code:
IfWinActive, ahk_class Shell_TrayWnd
    {
    MouseClick, Right, %ClickX%, %ClickY%
    Sleep, 200
    Send, c
   Sleep, 100
   Send, {Enter}
    WinWaitNotActive,  ahk_class Shell_TrayWnd,, 0.5 ; wait for save dialog, etc
    If ErrorLevel =1
      Send, !{Tab}
    Return
    }
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group