It doesn't seem to work in any way I try for some reason, the key ignores AHK, or I'm using the hotkey wrong, or my ahk syntax sucks
I read it on ahk website but even following what they said, or when I used key names instead of symbols like !^ etc,
nothing worked either
wtf is wrong with this hotkeys script?
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
isTABHotkeyActivated = True
MsgBox, , , F1 --- ON-OFF APERTAR TAB PARA DAR ALT TAB `n`n`n`n #sep --- SEPARADOR DE TEXTO P USAR NO VS CODE, 2
::#sep:://==============================================================================
;;doesnt trigger at all
$Tab::
if (isTABHotkeyActivated = True) {
send {AltTab}
} else {
send {Tab}
}
Return
; i would use f1 here if this hotkey has problems
;F1::
;;doesnt trigger at all
Ctrl & Tab::
if (isTABHotkeyActivated = True) {
MsgBox, , , Tab hotkey DESATIVADA!, 1
isTABHotkeyActivated = False
} else if (isTABHotkeyActivated = false) {
MsgBox, , , Tab hotkey ATIVADA!, 1
;MsgBox, , Title, Text, Timeout
isTABHotkeyActivated = True
}
Return