AutoHotkey Community

It is currently May 26th, 2012, 6:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: August 21st, 2008, 4:10 pm 
Offline

Joined: June 18th, 2008, 8:33 pm
Posts: 20
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 7th, 2008, 1:12 pm 
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. :?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 7th, 2008, 1:17 pm 
...from the taskbar, that is. Middle clicking the title bar works as usual.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 7th, 2008, 1:22 pm 
And I'm also posting in the wrong thread, it's another (though similar) script I'm using. I'll get me coat. :oops:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 29th, 2008, 8:28 am 
Offline

Joined: November 18th, 2008, 3:32 am
Posts: 10
Any chance to make it work with Firefox instead of IE? :-)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 5th, 2009, 4:02 pm 
Offline

Joined: December 15th, 2008, 12:27 pm
Posts: 13
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
    }
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2009, 5:29 am 
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...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2009, 1:32 pm 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
evl, your script is fantastic! Thank you.
:D :D :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Intel Laptops
PostPosted: December 30th, 2009, 10:29 pm 
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!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 9:26 am 
Offline

Joined: February 6th, 2005, 10:40 pm
Posts: 26
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 ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2010, 6:13 am 
Offline

Joined: May 28th, 2009, 2:57 pm
Posts: 4
Can anyone make it so when you mouse down on the titlebar it minimizes?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2010, 12:13 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2010, 12:04 pm 
Same problem here.

Is there any way around this?


Report this post
Top
  
Reply with quote  
 Post subject: Vista/Win7 Fix
PostPosted: January 21st, 2011, 8:08 pm 
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
    }


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Google Feedfetcher, Jaaaaaaaaay and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group