Advertisement
CeyhunVeyselTurkiye

rergdfgdfgfdgfdgt

Dec 31st, 2019
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MBXCreateMsgbox(title, text, icon, type)
  2. {
  3.     if icon = error
  4.     {
  5.         if type = YesNo
  6.         {
  7.             MsgBox, 20, %title%, %text%
  8.             return
  9.         }
  10.         if type = Ok
  11.         {
  12.             MsgBox, 16, %title%, %text%
  13.             return
  14.         }
  15.         if type = YesNoCancel
  16.         {
  17.             MsgBox, 19, %title%, %text%
  18.             return
  19.         }
  20.         if type = AbortRetryIgnore
  21.         {
  22.             MsgBox, 18, %title%, %text%
  23.             return
  24.         }
  25.         if type = CancelTryAgainContinue
  26.         {
  27.             MsgBox, 22, %title%, %text%
  28.             return
  29.         }
  30.         if type = OkCancel
  31.         {
  32.             MsgBox, 17, %title%, %text%
  33.             return
  34.         }
  35.         if type = RetryCancel
  36.         {
  37.             MsgBox, 21, %title%, %tex%
  38.             return
  39.         }
  40.     }
  41.     if icon = question
  42.     {
  43.         if type = Ok
  44.         {
  45.             MsgBox, 32, %title%, %text%
  46.             return
  47.         }
  48.         if type = OkCancel
  49.         {
  50.             MsgBox, 33, %title%, %text%
  51.             return
  52.         }
  53.         if type = AbortRetryIgnore
  54.         {
  55.             MsgBox, 34, %title%, %text%
  56.             return
  57.         }
  58.         if type = YesNoCancel
  59.         {
  60.             MsgBox, 35, %title%, %text%
  61.             return
  62.         }
  63.         if type = YesNo
  64.         {
  65.             MsgBox, 36, %title%, %text%
  66.             return
  67.         }
  68.         if type = RetryCancel
  69.         {
  70.             MsgBox, 37, %title%, %text%
  71.             return
  72.         }
  73.         if type = CancelTryAgainContinue
  74.         {
  75.             MsgBox, 38, %title%, %text%
  76.             return
  77.         }
  78.     }
  79.     if icon = excalmation
  80.     {
  81.         if type = Ok
  82.         {
  83.             MsgBox, 48, %title%, %text%
  84.             return
  85.         }
  86.         if type = OkCancel
  87.         {
  88.             MsgBox, 49, %title%, %text%
  89.             return
  90.         }
  91.         if type = AbortRetryIgnore
  92.         {
  93.             MsgBox, 50, %title%, %text%
  94.             return
  95.         }
  96.         if type = YesNoCancel
  97.         {
  98.             MsgBox, 51, %title%, %text%
  99.             return
  100.         }
  101.         if type = YesNo
  102.         {
  103.             MsgBox, 52, %title%, %text%
  104.             return
  105.         }
  106.         if type = RetryCancel
  107.         {
  108.             MsgBox, 53, %title%, %text%
  109.             return
  110.         }
  111.         if type = CancelTryAgainContinue
  112.         {
  113.             MsgBox, 54, %title%, %text%
  114.             return
  115.         }
  116.     }
  117.     if icon = Info
  118.     {
  119.         if type = Ok
  120.         {
  121.             MsgBox, 64, %title%, %text%
  122.             return
  123.         }
  124.         if type = OkCancel
  125.         {
  126.             MsgBox, 65, %title%, %text%
  127.             return
  128.         }
  129.         if type = AbortRetryIgnore
  130.         {
  131.             MsgBox, 66, %title%, %text%
  132.             return
  133.         }
  134.         if type = YesNoCancel
  135.         {
  136.             MsgBox, 67, %title%, %text%
  137.             return
  138.         }
  139.         if type = YesNo
  140.         {
  141.             MsgBox, 68, %title%, %text%
  142.             return
  143.         }
  144.         if type = RetryCancel
  145.         {
  146.             MsgBox, 69, %title%, %text%
  147.             return
  148.         }
  149.         if type = CancelTryAgainContinue
  150.         {
  151.             MsgBox, 70, %title%, %text%
  152.             return
  153.         }
  154.     }
  155. }
  156.  
  157. ; Extras
  158.  
  159. wait(second)
  160. {
  161.     sleep %second%000
  162.     return
  163. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement