Guest User

Untitled

a guest
Apr 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import arcpy
  2. import ctypes
  3.  
  4. inFile = arcpy.GetParameterAsText(0)
  5. arcpy.AddMessage("nInput file: {0}n".format(inFile))
  6.  
  7. # Yes/No mbox = 4, return code Yes = 6, return code No = 7
  8. mBox = ctypes.windll.user32.MessageBoxW
  9. result = mBox(None, u"Just checking...", u"File Check", 4)
  10.  
  11. if result == 6:
  12. arcpy.AddMessage("User pressed Yesn")
  13. elif result == 7:
  14. arcpy.AddMessage("User pressed Non")
  15. else:
  16. arcpy.AddMessage("Unknown return coden")
  17.  
  18. arcpy.AddMessage("Complete.n")
Add Comment
Please, Sign In to add comment