Switch tabs with holding Ctrl

Get help with using AutoHotkey and its commands and hotkeys
Posts: 1
Joined: 20 Feb 2018, 05:16

Switch tabs with holding Ctrl

20 Feb 2018, 05:48

I want to remap Ctrl+Tab to Caps+e and Ctrl+Shift+Tab to Caps+q.
For simple tab switch this would be easy. The issue is with the tab switch that opens window with tab list if you hold down the Ctrl and moves within it if you keep pressing Tab, until you release both keys (examples are tab switching in Notepad++ or IntelliJ Idea).
And I am not able to implement Capslock hold and at the same time register e or q. I have tried this but it doesn't register e as another Tab while Capslock is pressed:

Code: Select all

Capslock & e::
SendInput {Ctrl Down}{Tab Down}
KeyWait, CapsLock
SendInput {Ctrl Up}{Tab Up}
Do you have some idea?
User avatar
Posts: 27
Joined: 01 Jul 2017, 11:48
GitHub: RunarSF
Location: Norway

Re: Switch tabs with holding Ctrl

22 Feb 2018, 09:04

Are you thinking of something like this?

Code: Select all

#SingleInstance, Force ; Skip replace dialog.
CapsLock & e::^Tab
CapsLock & q::^+Tab
There are two kinds of people in the world: those who can extrapolate from incomplete data.

Return to “Ask For Help”

Who is online

Users browsing this forum: afe, Bing [Bot], coffee, kczx3, Sabestian Caine, TAC109 and 46 guests