| View previous topic :: View next topic |
| Author |
Message |
ttrickyy
Joined: 18 Jun 2008 Posts: 20
|
Posted: Thu Aug 21, 2008 3:10 pm Post subject: |
|
|
| 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 |
|
 |
Larkku Guest
|
Posted: Sun Sep 07, 2008 12:12 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
Larkku Guest
|
Posted: Sun Sep 07, 2008 12:17 pm Post subject: |
|
|
| ...from the taskbar, that is. Middle clicking the title bar works as usual. |
|
| Back to top |
|
 |
Larkku Guest
|
Posted: Sun Sep 07, 2008 12:22 pm Post subject: |
|
|
And I'm also posting in the wrong thread, it's another (though similar) script I'm using. I'll get me coat.  |
|
| Back to top |
|
 |
bandittm
Joined: 18 Nov 2008 Posts: 10
|
Posted: Sat Nov 29, 2008 7:28 am Post subject: |
|
|
Any chance to make it work with Firefox instead of IE?  |
|
| Back to top |
|
 |
szekelya
Joined: 15 Dec 2008 Posts: 13
|
Posted: Tue May 05, 2009 3:02 pm Post subject: |
|
|
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 |
|
 |
hannaxbear Guest
|
Posted: Tue Jun 09, 2009 4:29 am Post subject: |
|
|
| 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
|
Posted: Sun Oct 25, 2009 12:32 pm Post subject: |
|
|
evl, your script is fantastic! Thank you.
 |
|
| Back to top |
|
 |
BenBenBen Guest
|
Posted: Wed Dec 30, 2009 9:29 pm Post subject: Intel Laptops |
|
|
| 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
|
Posted: Thu Dec 31, 2009 8:26 am Post subject: |
|
|
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 |
|
 |
Raine
Joined: 28 May 2009 Posts: 4
|
Posted: Sun Jan 03, 2010 5:13 am Post subject: |
|
|
| Can anyone make it so when you mouse down on the titlebar it minimizes? |
|
| Back to top |
|
 |
matej64 Guest
|
Posted: Thu May 13, 2010 11:13 am Post subject: |
|
|
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
|
Posted: Sat Sep 04, 2010 11:04 am Post subject: |
|
|
Same problem here.
Is there any way around this? |
|
| Back to top |
|
 |
wiedzmin Guest
|
Posted: Fri Jan 21, 2011 7:08 pm Post subject: Vista/Win7 Fix |
|
|
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 |
|
 |
|