DonationCoder.com Forum

DonationCoder.com Software => Coding Snacks => Post New Requests Here => Topic started by: ovehal on November 15, 2005, 02:40 PM

Title: Alt-Tab with mouse
Post by: ovehal on November 15, 2005, 02:40 PM
I was very exited a while ago when I bougth my Intellimouse, because it should do alt-tab.
I does but it's not fully functional. One click on the mouse wheel = one alt-tab. So it's only usable to switch back and forth between two windows.

What I would like is a fully functional alt-tab from the mouse.
Like:

1) Click, hold and scroll the wheel button to switch to the desired application.
2) Right click hold and left click to alt-tab thru the windows. Left click hold and right click to alt-shift-tab thru the windows.
3) The same as 2 but configurable for mouse with several buttons.

And so for a alt-tab hint that it can't believe it have taken me so many years to discover.

If your dragging a file from one window to another. Earlier I would have done it in one of two ways.
1) Keep both windows visible on screen.
2) Drag the file over the sys. toolbar button and hold it there until the window comes up front.

Now I just start dragging and while dragging I just alt-tab to the right window.
Was this old news to everybody? (If so don't let me know:-))
Title: Re: Alt-Tab with mouse
Post by: nilness on November 20, 2005, 12:24 AM
If you've got AutoHotkey installed (http://www.autohotkey.com/ (http://www.autohotkey.com/)) then this is pretty simple to do. Copy this little piece of code and save it as MouseAltTab.ahk. Double click it and you've got Alt-Tab functionality with the mousewheel button.

; Mousewheel Alt-Tab

MButton & WheelUp::ShiftAltTab   ;Mousewheel click-hold + wheel scroll up equals Shift-Alt-Tab
MButton & WheelDown::AltTab     ;Mousewheel click-hold + wheel scroll down equals Alt-Tab
MButton::Mouseclick, Middle         ;Pass on plain mousewheel clicks
Title: Re: Alt-Tab with mouse
Post by: Carol Haynes on November 20, 2005, 07:02 PM
Are you using the latest IntelliMouse drivers? My IntelliMouse Explorer cycles through all active windows as I click the wheel.
Title: Re: Alt-Tab with mouse
Post by: brotherS on December 22, 2005, 11:55 AM
If you've got AutoHotkey installed (http://www.autohotkey.com/ (http://www.autohotkey.com/)) then this is pretty simple to do. Copy this little piece of code and save it as MouseAltTab.ahk. Double click it and you've got Alt-Tab functionality with the mousewheel button.

; Mousewheel Alt-Tab

MButton & WheelUp::ShiftAltTab   ;Mousewheel click-hold + wheel scroll up equals Shift-Alt-Tab
MButton & WheelDown::AltTab     ;Mousewheel click-hold + wheel scroll down equals Alt-Tab
MButton::Mouseclick, Middle         ;Pass on plain mousewheel clicks
Hehe, nice idea! It's a bit tricky to use, but it works! :)

"Mousewheel click-hold + wheel scroll up equals Shift-Alt-Tab" --> not exactly here, it opens that Alt+TAB window, then every scroll up OR down moves the cursor the left in there.

As I said: tricky, but it works :)
Title: Re: Alt-Tab with mouse
Post by: brotherS on December 22, 2005, 03:27 PM
WARNING!

These 3 lines caused severe trouble in Firefox, like cloing two tabs when clicking with the middle mouse button on one etc. - I was very puzzled at first, until I remembered I added this to my AutoHotkey.ini  :(
Title: Re: Alt-Tab with mouse
Post by: nilness on December 27, 2005, 10:11 PM
WARNING!

These 3 lines caused severe trouble in Firefox, like cloing two tabs when clicking with the middle mouse button on one etc. - I was very puzzled at first, until I remembered I added this to my AutoHotkey.ini  :(


Interesting. It works perfectly for me as coded (on a plain vanilla XP system). Could you give me any information about your specific software configuration? Your comment about the ALT-TAB function being 'tricky' leads me to believe that you have Alt-Tab "extender" software installed. As for the repeat clicks in Firefox, I am not getting that but I suppose you could just try disabling the third line of code by adding a semi-colon in front like this:

;MButton::Mouseclick, Middle         ;Pass on plain mousewheel clicks

and see if that works. Also, what brand of mouse/mouse software do you have?

As a point of interest, I was expecting someone else to take this idea and run with it hence the bare-bones nature of the code. I suppose I could work on it a bit more - schedule and mightily neglected girlfriend permitting.
Title: Re: Alt-Tab with mouse
Post by: Catalin on December 28, 2005, 09:47 AM
You can also have a very advanced visual menu of tasks if you are using XDESK (the feature is called something like Task Menu and you can access it by holding at the same time the RIGHT and then the LEFT mouse buttons).
Title: Re: Alt-Tab with mouse
Post by: notaguru on October 11, 2009, 09:43 AM
Alt-Edge works a little too well, as shown by many inadvertent invocations.

I'd suggest a user-adjustable delay from 0-1000 msec. Possible?

Thanks