AutoHotkey Community

It is currently May 27th, 2012, 12:50 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: December 22nd, 2009, 6:30 pm 
Offline

Joined: November 15th, 2009, 6:54 pm
Posts: 82
Location: Berlin
JO
this is a very small script wich allows u to close a window by click the middle mousebutton on the titlebar of this window....like u can close tabs in firefox^^..

Code:
~MButton::
   MouseGetPos, x, y, hWnd
return

~MButton Up::
   if(IsOverTitleBar(x, y, hWnd))
   {
      WinGetClass, classname , ahk_id %hWnd%
      if(hWnd != "" and classname != "Shell_TrayWnd")
      {
         WinClose , ahk_id %hWnd%
      }
   }
   x =
   y =
   hWnd =
return

IsOverTitleBar(x, y, hWnd)
{
   SendMessage, 0x84,, (x & 0xFFFF) | (y & 0xFFFF) << 16,, ahk_id %hWnd%
   if ErrorLevel in 2,3,8,9,20,21
      return true
   else
      return false
}


i know this is a miniscript but i like it...
and i like the usability of firefox very much

_________________
*can't live without AHK*


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2009, 7:56 am 
Offline

Joined: May 8th, 2008, 2:58 pm
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar
in windows 7 not work?
in firefox my tech mouse dont support middle click close and open links in new tab :/

_________________
Keegi Siin ka Eestlane? :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2009, 2:23 pm 
Offline

Joined: November 15th, 2009, 6:54 pm
Posts: 82
Location: Berlin
RIST wrote:
in windows 7 not work?/

i'm sry..
i got win 7 and it works..
RIST wrote:
in firefox my tech mouse dont support middle click close and open links in new tab :/

why?..do you got a special mouse?

_________________
*can't live without AHK*


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2009, 12:58 am 
Offline

Joined: May 8th, 2008, 2:58 pm
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar
GDur wrote:
RIST wrote:
in windows 7 not work?/

i'm sry..
i got win 7 and it works..
RIST wrote:
in firefox my tech mouse dont support middle click close and open links in new tab :/

why?..do you got a special mouse?


i have a4 tech mouse with many buttons,, that use other soft and middle click close not work in ff but with other mouse work,

_________________
Keegi Siin ka Eestlane? :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2009, 1:35 am 
Offline

Joined: November 15th, 2009, 6:54 pm
Posts: 82
Location: Berlin
RIST wrote:
GDur wrote:
RIST wrote:
in windows 7 not work?/

i'm sry..
i got win 7 and it works..
RIST wrote:
in firefox my tech mouse dont support middle click close and open links in new tab :/

why?..do you got a special mouse?


i have a4 tech mouse with many buttons,, that use other soft and middle click close not work in ff but with other mouse work,

so the middlemosuebutton never works with your pc?...
then i can do nothing..

_________________
*can't live without AHK*


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2009, 3:56 pm 
Offline

Joined: May 8th, 2008, 2:58 pm
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar
GDur wrote:
RIST wrote:
GDur wrote:
RIST wrote:
in windows 7 not work?/

i'm sry..
i got win 7 and it works..
RIST wrote:
in firefox my tech mouse dont support middle click close and open links in new tab :/

why?..do you got a special mouse?


i have a4 tech mouse with many buttons,, that use other soft and middle click close not work in ff but with other mouse work,

so the middlemosuebutton never works with your pc?...
then i can do nothing..


only can scroll with hand (like in adobe reader)

_________________
Keegi Siin ka Eestlane? :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2009, 4:30 pm 
Offline

Joined: November 15th, 2009, 6:54 pm
Posts: 82
Location: Berlin
RIST wrote:
GDur wrote:
RIST wrote:
GDur wrote:
RIST wrote:
in windows 7 not work?/

i'm sry..
i got win 7 and it works..
RIST wrote:
in firefox my tech mouse dont support middle click close and open links in new tab :/

why?..do you got a special mouse?


i have a4 tech mouse with many buttons,, that use other soft and middle click close not work in ff but with other mouse work,

so the middlemosuebutton never works with your pc?...
then i can do nothing..


only can scroll with hand (like in adobe reader)
? ..
how can i scroll in adboe reader?

_________________
*can't live without AHK*


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2009, 4:31 pm 
Offline

Joined: November 15th, 2009, 6:54 pm
Posts: 82
Location: Berlin
i can't see the problem sry...

_________________
*can't live without AHK*


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2009, 7:24 pm 
Offline

Joined: May 8th, 2008, 2:58 pm
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar
GDur wrote:
i can't see the problem sry...


oh i find fix for tech mouses what use other soft. in settings-buttons-3 change to middle click(default is "PAN") and apply :)

in ff work now but u script work sometimes and when i press middle lower than adress bar :/

_________________
Keegi Siin ka Eestlane? :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 26th, 2009, 10:48 pm 
Offline

Joined: November 15th, 2009, 6:54 pm
Posts: 82
Location: Berlin
RIST wrote:
GDur wrote:
i can't see the problem sry...


oh i find fix for tech mouses what use other soft. in settings-buttons-3 change to middle click(default is "PAN") and apply :)

in ff work now but u script work sometimes and when i press middle lower than adress bar :/

got the isovertitle function from: http://www.autohotkey.com/forum/topic22178.html

_________________
*can't live without AHK*


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi® and 10 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