You can only use one hotkey such as
1::
shutdown, 9
return
or two hotkeys such as
1 & 2::
shutdown, 9
return
where 1 acts as a shift key.
However, here's a work around I cooked up:
$1::
send 1
KeyWait, 2, D T1
If (ErrorLevel = 0)
{
Keywait, 4, D T1
If (ErrorLevel = 0)
{
shutdown, 9
}
}
return
This works, but note that it has a couple of side effects - when you press 1, the 1 key is disabled for a second afterwards. This shouldn't be a problem if 1 is being used as a start button. Otherwise, you may wish to switch the keys around so that 2 or 4 is the hotkey. Also, this will also be activated if you pressed 1 then 2 then 4 fairly quickly, but assuming these aren't all "action" buttons, that's unlikely to happen by accident.