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