you can do like mlipok told you.
Here an Example for Switch method
$msg = MsgBox(2, "", "Select anything")
Switch $msg
Case 3
MsgBox(0, "", "You pressed Abort")
Case 4
MsgBox(0, "", "You pressed Retry")
Case 5
MsgBox(0, "", "You pressed Ignore")
EndSwitch
and for IF method
$msg = MsgBox(2, "", "Select anything")
If $msg = 3 Then
MsgBox(0,"", "You pressed Abort")
ElseIf $msg = 4 Then
MsgBox(0,"", "You pressed Retry")
ElseIf $msg Then
MsgBox(0,"", "You pressed Ignore")
EndIf
do what's better for u, i don't really know whats diffirence
hope this what you're looking for
If $msgcom = 1 then ; if pressed OK then
sleep($time) ; wait the time you want
shutdown(32) ; shutdown after waiting
ElseIf $msgcom = 2 ; if pressed cancel then
msgbox(0, "", "standby is canceled") ; appear the msgbox
Endif ; closing the If statement
EDIT: add IF method
EDIT2: your script