Switch tabs with holding Ctrl

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
xYann00
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}
Return
Do you have some idea?
User avatar
RunarSF
Posts: 27
Joined: 01 Jul 2017, 11:48
Location: Norway
Contact:

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 (v1)”

Who is online

Users browsing this forum: Anput, Google [Bot], RandomBoy and 402 guests