| View previous topic :: View next topic |
| Author |
Message |
GDur
Joined: 15 Nov 2009 Posts: 82 Location: Berlin
|
Posted: Tue Dec 22, 2009 5:30 pm Post subject: Close Windows Like Tabs in Firefox^^ |
|
|
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 |
|
 |
RIST
Joined: 08 May 2008 Posts: 39 Location: C:\ESTONIA\adavere\RIST.rar
|
Posted: Fri Dec 25, 2009 6:56 am Post subject: |
|
|
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?  |
|
| Back to top |
|
 |
GDur
Joined: 15 Nov 2009 Posts: 82 Location: Berlin
|
Posted: Fri Dec 25, 2009 1:23 pm Post subject: |
|
|
| 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 |
|
 |
RIST
Joined: 08 May 2008 Posts: 39 Location: C:\ESTONIA\adavere\RIST.rar
|
Posted: Fri Dec 25, 2009 11:58 pm Post subject: |
|
|
| 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?  |
|
| Back to top |
|
 |
GDur
Joined: 15 Nov 2009 Posts: 82 Location: Berlin
|
Posted: Sat Dec 26, 2009 12:35 am Post subject: |
|
|
| 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 |
|
 |
RIST
Joined: 08 May 2008 Posts: 39 Location: C:\ESTONIA\adavere\RIST.rar
|
Posted: Sat Dec 26, 2009 2:56 pm Post subject: |
|
|
| 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?  |
|
| Back to top |
|
 |
GDur
Joined: 15 Nov 2009 Posts: 82 Location: Berlin
|
Posted: Sat Dec 26, 2009 3:30 pm Post subject: |
|
|
| 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 |
|
 |
GDur
Joined: 15 Nov 2009 Posts: 82 Location: Berlin
|
Posted: Sat Dec 26, 2009 3:31 pm Post subject: |
|
|
i can't see the problem sry... _________________ *can't live without AHK* |
|
| Back to top |
|
 |
RIST
Joined: 08 May 2008 Posts: 39 Location: C:\ESTONIA\adavere\RIST.rar
|
Posted: Sat Dec 26, 2009 6:24 pm Post subject: |
|
|
| 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?  |
|
| Back to top |
|
 |
GDur
Joined: 15 Nov 2009 Posts: 82 Location: Berlin
|
Posted: Sat Dec 26, 2009 9:48 pm Post subject: |
|
|
| 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* |
|
| Back to top |
|
 |
|