#Requires AutoHotkey v2.0
Key := { Alt: { ih: InputHook('L1') } }
Alt:: {
Send '{Alt Down}'
Key.Alt.ih.Start()
Key.Alt.ih.Wait()
}
Alt Up:: {
if Key.Alt.ih.EndReason == '' {
Key.Alt.ih.Stop()
Send '{Ctrl}'
}
Send '{Alt Up}'
}
Key := { Alt: { ih: InputHook('L1') } }
Alt:: {
Send '{Alt Down}'
Key.Alt.ih.Start()
Key.Alt.ih.Wait()
}
Alt Up:: {
if Key.Alt.ih.EndReason == '' {
Key.Alt.ih.Stop()
Send '{Ctrl}'
}
Send '{Alt Up}'
}