Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Msgbox for python 2.7
- from ctypes import *
- #Define constants:
- null = c_int(0) #A C null
- MB_OK = 0x00000000L #Ok button
- MB_ICONERROR = 0x00000010L #Critical Icon
- MB_TOPMOST = 0x00040000L # cannot be hided.
- #more at http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505%28v=vs.85%29.aspx
- #defining function:
- msgBox = windll.user32.MessageBoxA
- #Execute function:
- msgBox(null,str('Title'),str('Message'), MB_OK | MB_ICONERROR | MB_TOPMOST)
Advertisement
Add Comment
Please, Sign In to add comment