The following example sets the task to trigger on a hotkey and sets the hotkey to Ctrl-S.
Sub Main
' Set the hotkey to Ctrl-S
CurrentTask2.Hotkey = %s
' Set to trigger on a hotkey
CurrentTask2.TaskTriggers = 8
End Sub