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 

Close Windows Like Tabs in Firefox^^

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
GDur



Joined: 15 Nov 2009
Posts: 82
Location: Berlin

PostPosted: Tue Dec 22, 2009 5:30 pm    Post subject: Close Windows Like Tabs in Firefox^^ Reply with quote

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*
Back to top
View user's profile Send private message MSN Messenger
RIST



Joined: 08 May 2008
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar

PostPosted: Fri Dec 25, 2009 6:56 am    Post subject: Reply with quote

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? Smile
Back to top
View user's profile Send private message
GDur



Joined: 15 Nov 2009
Posts: 82
Location: Berlin

PostPosted: Fri Dec 25, 2009 1:23 pm    Post subject: Reply with quote

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*
Back to top
View user's profile Send private message MSN Messenger
RIST



Joined: 08 May 2008
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar

PostPosted: Fri Dec 25, 2009 11:58 pm    Post subject: Reply with quote

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? Smile
Back to top
View user's profile Send private message
GDur



Joined: 15 Nov 2009
Posts: 82
Location: Berlin

PostPosted: Sat Dec 26, 2009 12:35 am    Post subject: Reply with quote

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*
Back to top
View user's profile Send private message MSN Messenger
RIST



Joined: 08 May 2008
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar

PostPosted: Sat Dec 26, 2009 2:56 pm    Post subject: Reply with quote

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? Smile
Back to top
View user's profile Send private message
GDur



Joined: 15 Nov 2009
Posts: 82
Location: Berlin

PostPosted: Sat Dec 26, 2009 3:30 pm    Post subject: Reply with quote

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*
Back to top
View user's profile Send private message MSN Messenger
GDur



Joined: 15 Nov 2009
Posts: 82
Location: Berlin

PostPosted: Sat Dec 26, 2009 3:31 pm    Post subject: Reply with quote

i can't see the problem sry...
_________________
*can't live without AHK*
Back to top
View user's profile Send private message MSN Messenger
RIST



Joined: 08 May 2008
Posts: 39
Location: C:\ESTONIA\adavere\RIST.rar

PostPosted: Sat Dec 26, 2009 6:24 pm    Post subject: Reply with quote

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 Smile

in ff work now but u script work sometimes and when i press middle lower than adress bar :/
_________________
Keegi Siin ka Eestlane? Smile
Back to top
View user's profile Send private message
GDur



Joined: 15 Nov 2009
Posts: 82
Location: Berlin

PostPosted: Sat Dec 26, 2009 9:48 pm    Post subject: Reply with quote

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 Smile

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*
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
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