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 

Alt+Tab Action for the Mouse Wheel
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Oct 31, 2007 2:11 am    Post subject: Reply with quote

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

PostPosted: Wed Nov 07, 2007 11:59 pm    Post subject: Re: Alt+Tab Action for the Mouse Wheel Reply with quote

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

Code:
#z::
Run www.google.com
Run c:\program file\winamp\winamp.exe


regards,
Huy
Back to top
View user's profile Send private message
dz_duck
Guest





PostPosted: Wed Aug 20, 2008 6:09 pm    Post subject: Reply with quote

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

PostPosted: Tue Sep 16, 2008 3:56 am    Post subject: Reply with quote

Chris wrote:


~Rbutton & LButton::AltTab
RButton::MouseClick, right,,,,, D
RButton up::MouseClick, right,,,,, U ; This method allows right-click-drag to work.


Shocked
this cloudn't work well , always let the RightCilckMenu out Question
_________________
喜欢看中文的可以来 AutoHotkey 爱好者论坛 : forum.ahkbbs.cn | ahk.5d6d.com
Back to top
View user's profile Send private message Visit poster's website
ebennetthill
Guest





PostPosted: Sun Nov 09, 2008 4:36 pm    Post subject: Reply with quote

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





PostPosted: Sun Nov 09, 2008 5:29 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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