Alt Tab with mouse

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rsdourado
Posts: 4
Joined: 02 Feb 2016, 10:57

Alt Tab with mouse

11 Feb 2016, 06:30

Hi,

I want to quickly change windows by holding the right mouse button and clicking the left.

First I tried this code:

Code: Select all

RButton & LButton::AltTab
return
But now the right button don't work as a right button anymore.

So I tried this:

Code: Select all

RButton & LButton::AltTab
RButton::RButton
return
It works, but only sometimes. Other times I get some nasty errors.

What is the best way to do this?

Thanks.
AllUrBaseRBelong2Us
Posts: 35
Joined: 09 Nov 2015, 11:15

Re: Alt Tab with mouse

11 Feb 2016, 09:21

Try this:

Code: Select all

RButton & LButton::AltTab
RButton::RButton
LButton::LButton
return
GEV
Posts: 1005
Joined: 25 Feb 2014, 00:50

Re: Alt Tab with mouse

11 Feb 2016, 10:25

tilde (~) prefix:
When the hotkey fires, its key's native function will not be blocked (hidden from the system)...
https://autohotkey.com/docs/Hotkeys.htm#Tilde

Code: Select all

~RButton & LButton::AltTab
or

Code: Select all

~RButton & ~LButton::AltTab

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk and 353 guests