As two separate scripts the hotkeys work as expected. Combining into one file the #^l and #^h hotkeys stop working. Is it a glitch or am I doing something wrong?
#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.
LAlt::LWin
LWin::LAlt
CapsLock::LCtrl
#^l::#^Right
#^h::#^Left