Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force
SetKeyDelay -1
~alt::
if (A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 350 and A_TimeSincePriorHotkey > 70){
SendInput {Blind}{alt Up}
SendInput {ctrl down}{shift down}
keywait alt
SendInput {ctrl up}{shift up}
}
return
~ctrl::
tooltip % a_timesincepriorhotkey
if (a_thishotkey = a_priorhotkey && a_timesincepriorhotkey < 350 and a_timesincepriorhotkey > 70){
sendinput {blind}{ctrl up}
sendinput {shift down}
keywait ctrl
sendinput {shift up}
}
return