Hello,
Can you look at this code, see why the button constants are not being picked up.
Const TIMEOUT = 10
Dim intClicked
Set objShell = WScript.CreateObject("WScript.Shell")
'objShell.Popup "Abort, Retry, Ignore. Retry Set as Default." ,TIMEOUT,,vbYesNo+vbDefaultButton1
objShell.Popup "Stop Icon / Abort, Retry and Ignore Buttons", _
TIMEOUT, "Popup Example", vbInformation + vbYesNo
If intClicked = 6 Then
objItem.StartService()
WScript.Echo "Button Constants 6"
End If
If intClicked = 7 Then
WScript.Echo "Button Constants 7"
End If
Thanks,
Mike
Can you look at this code, see why the button constants are not being picked up.
Const TIMEOUT = 10
Dim intClicked
Set objShell = WScript.CreateObject("WScript.Shell")
'objShell.Popup "Abort, Retry, Ignore. Retry Set as Default." ,TIMEOUT,,vbYesNo+vbDefaultButton1
objShell.Popup "Stop Icon / Abort, Retry and Ignore Buttons", _
TIMEOUT, "Popup Example", vbInformation + vbYesNo
If intClicked = 6 Then
objItem.StartService()
WScript.Echo "Button Constants 6"
End If
If intClicked = 7 Then
WScript.Echo "Button Constants 7"
End If
Thanks,
Mike