Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; ---------
- ; META RIGHT BUTTON
- ; ------
- ; For Internet Browsers
- ; ---
- ; - Single RClick: New tab
- ; - Double RClick: Close tab
- ; - Hold down half second: Exit app
- ; - Shift RClick: Right click
- ; ---
- ; For Others
- ; ---
- ; - Single RClick: New window
- ; - Double RClick: Close tab
- ; - Hold down half second: Exit app
- ; - Shift RClick: Right click
- ; ---
- ; Toggle disable: Windows + RButton
- ; Source: ;https://autohotkey.com/board/topic/7648-right-mouse-button-added-functionality-doubleclick-it/
- RButton::
- KeyWait, RButton, t0.5
- if errorlevel ; Hold down for half a second
- Send, !{f4}
- else
- KeyWait, RButton, d, t0.5
- if !errorlevel ; Double right click
- {
- IfWinActive, ahk_class Notepad
- Send, !{f4} ; Winclose, a
- else
- Send, ^w ; ^{f4}
- }
- else ; Single right click
- {
- IfWinActive, ahk_class Chrome_WidgetWin_1
- Send, ^t
- else
- Send, ^n
- }
- return
Add Comment
Please, Sign In to add comment