 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed Oct 31, 2007 2:11 am Post subject: |
|
|
| Leo wrote: | I have the following script:
-----
Rbutton & WheelDown::AltTab
$RButton::MouseClick, right
WheelDown::AltTab
WheelUp::ShiftAltTab
MButton::Send, {ESC}
-----
I'd like it to "cancel" the Alt+Tab when pressing MiddleMouseButton (ie: as pressing ESC when using alt+tab: the alt+tab window will close and it will return to the previously selected window) but it won't work.
I tried several other combinations but none will close the alt+tab window.
Any ideas ?
PS: I know I may press Escape to cancel the alt+tab but I'd like to be able to use alt+tab with mouse only, including cancelling it... |
i like this, but it disables my mouse gestures in ff. i don't want the script disabled in ff, as i want to use it in all programs. |
|
| Back to top |
|
 |
nuganen
Joined: 07 Nov 2007 Posts: 5
|
Posted: Wed Nov 07, 2007 11:59 pm Post subject: Re: Alt+Tab Action for the Mouse Wheel |
|
|
| Brandon Pace wrote: | | Code: | #NoTrayIcon
*MButton::
GetKeyState, CapsState, CapsLock, T
If CapsState = D
SetCapsLockState, Off
Send, {AltDown}{Tab}
Sleep, 200
Loop
{
GetKeyState, WheelState, MButton, P
If WheelState = D
Sleep, 400
GetKeyState, WheelState, MButton, P
If WheelState = D
Send, {Tab}
Else
{
Send, {AltUp}
Break
}
}
Send, {AltUp}
If CapsState = D
SetCapsLockState, On |
|
Hi,
I was how would you go about modifying the code so that if i have a monitor tool and wed page open and they just switches automatically every 30 second or something like that
at the moment i have
regards,
Huy |
|
| Back to top |
|
 |
dz_duck Guest
|
Posted: Wed Aug 20, 2008 6:09 pm Post subject: |
|
|
| Chris wrote: | Nice. If you haven't already, you might try the following as well. I find it quite convenient:
MButton::AltTabMenu
WheelDown::AltTab
WheelUp::ShiftAltTab
Click the wheel to show or hide the menu, and turn it to navigate through the menu. The wheel will still function normally whenever the Alt-Tab menu isn't visible. |
Here's a variation of this one for people who use the normal MButton for other things:
| Code: | Ctrl & MButton::AltTabMenu
Ctrl & WheelDown::AltTab
Ctrl & WheelUp::ShiftAltTab
|
Actually, I don't think you even need the first line, as holding Ctrl and rolling will bring up the Alt-Tab menu anyway. Just release Ctrl to choose the app and close the menu! Escape closes the menu without changing focus. |
|
| Back to top |
|
 |
ttzm
Joined: 17 Feb 2008 Posts: 17 Location: CHINA
|
Posted: Tue Sep 16, 2008 3:56 am Post subject: |
|
|
| Chris wrote: |
~Rbutton & LButton::AltTab
RButton::MouseClick, right,,,,, D
RButton up::MouseClick, right,,,,, U ; This method allows right-click-drag to work. |
this cloudn't work well , always let the RightCilckMenu out  _________________ 喜欢看中文的可以来 AutoHotkey 爱好者论坛 : forum.ahkbbs.cn | ahk.5d6d.com |
|
| Back to top |
|
 |
ebennetthill Guest
|
Posted: Sun Nov 09, 2008 4:36 pm Post subject: |
|
|
When I use this code
| Code: | MButton::AltTabMenu
WheelDown::AltTab
WheelUp::ShiftAltTab |
it works beautifully - very handy, but I do have to press the middle button after choosing to totally dismiss the the Alt-Tab menu. If I don't press the middle button, the next mouse scroll causes the Alt-Tab menu to reappear. Is there a way for the right-click that chooses a window to dismiss the Alt-Tab menu?
Also, if I scroll then dismiss the Alt-Tab menu with a middle click without choosing, the window that was scrolled to has the focus and my taskbar won't autohide until I go that window. Is there a way to not change the focus until the right-click? |
|
| Back to top |
|
 |
ebennetthill Guest
|
Posted: Sun Nov 09, 2008 5:29 pm Post subject: |
|
|
| I have seen now that some of my question has to do with using the AltTab powertoy from Microsoft. I uninstalled it. So my question is not really applicable until I understand it a little better. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|