Hollowyearz

WinApi_MsgBox / Retry/Cancel Example

Dec 25th, 2013
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.39 KB | None | 0 0
  1. #include <MsgBoxConstants.au3>
  2.  
  3. _msgBox()
  4.  
  5. Func _msgBox()
  6. $msg = MsgBox(4133, "SYSTEMMODAL", "This is a Test Message Box")
  7. ;$MB_ICONQUESTION 32 Question-mark icon
  8. ;$MB_RETRYCANCEL 5 Retry and Cancel
  9.  
  10. If $msg = $IDRETRY Then
  11.             MsgBox(0, "Test", "Retry was Clicked", 1)
  12.             _msgBox()
  13.         EndIf
  14.  
  15. If $msg = $IDCANCEL Then
  16.             MsgBox(0, "Test", "Cancel was Clicked", 1)
  17.  
  18.         EndIf
  19. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment