Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. EnableExplicit
  2. Enumeration #PB_Compiler_EnumerationValue
  3. #Window
  4. #Text0
  5. #Text1
  6. #Text2
  7. #Text3
  8. #Text4
  9.  
  10. #String_Login
  11. #String_Password
  12. #Button_Enter
  13. #WrongData
  14. EndEnumeration
  15.  
  16. Procedure AccChange(Gadget)
  17. Protected Value.s
  18. Value=GetGadgetText(Gadget)
  19. If Value=""
  20. Select Gadget
  21. Case #String_Login
  22. Value.s="Login"
  23. Case #String_Password
  24. Value.s="Password"
  25. EndSelect
  26. Else
  27. Value.s=""
  28. EndIf
  29.  
  30. SendMessage_(GadgetID(Gadget), #EM_SETCUEBANNER, 0, @Value)
  31. EndProcedure
  32.  
  33.  
  34. Procedure OpenWindow_1()
  35. OpenWindow(#Window, 300, 300, 444, 324, "Facebook Ultra Bot", #PB_Window_SystemMenu | #PB_Window_BorderLess | #PB_Window_ScreenCentered)
  36. SetWindowColor(#Window, RGB(63,81,181))
  37. StringGadget(#Window,0,0,0,0,"")
  38.  
  39. TextGadget(#Text0, 20, 10, 404, 34, "Facebook Ultra Bot", #PB_Text_Center)
  40. SetGadgetColor(#Text0, #PB_Gadget_FrontColor,RGB(255,255,255))
  41. SetGadgetColor(#Text0, #PB_Gadget_BackColor,RGB(63,81,181))
  42. LoadFont(33,"Courier New", 28, #PB_Font_Bold)
  43. SetGadgetFont(#Text0, FontID(33))
  44.  
  45. TextGadget(#Text1, 50, 62, 142, 34, "POSTER", #PB_Text_Center)
  46. SetGadgetColor(#Text1, #PB_Gadget_FrontColor,RGB(3,169,244))
  47. SetGadgetColor(#Text1, #PB_Gadget_BackColor,RGB(63,81,181))
  48. LoadFont(44,"Courier New", 28, #PB_Font_Bold)
  49. SetGadgetFont(#Text1, FontID(44))
  50.  
  51.  
  52. TextGadget(#Text2, 254, 62, 142, 34, "PARSER", #PB_Text_Center)
  53. SetGadgetColor(#Text2, #PB_Gadget_FrontColor,RGB(0,150,136))
  54. SetGadgetColor(#Text2, #PB_Gadget_BackColor,RGB(63,81,181))
  55. LoadFont(55,"Courier New", 28, #PB_Font_Bold)
  56. SetGadgetFont(#Text2, FontID(55))
  57.  
  58.  
  59. TextGadget(#Text3, 206, 62, 34, 34, "+", #PB_Text_Center)
  60. SetGadgetColor(#Text3, #PB_Gadget_FrontColor,RGB(255,255,255))
  61. SetGadgetColor(#Text3, #PB_Gadget_BackColor,RGB(63,81,181))
  62. LoadFont(66,"Courier New", 25, #PB_Font_Bold)
  63. SetGadgetFont(#Text3, FontID(66))
  64.  
  65. TextGadget(#Text4, 120, 126, 206, 30, "Вход в Аккаунт", #PB_Text_Center)
  66. SetGadgetColor(#Text4, #PB_Gadget_FrontColor,RGB(76,175,80))
  67. SetGadgetColor(#Text4, #PB_Gadget_BackColor,RGB(63,81,181))
  68. LoadFont(77,"Courier New", 18, #PB_Font_Bold)
  69. SetGadgetFont(#Text4, FontID(77))
  70.  
  71. StringGadget(#String_Login, 140, 176, 172, 24, "")
  72. LoadFont(88,"Noto Mono", 11)
  73. SetGadgetFont(#String_Login, FontID(88))
  74. AccChange(#String_Login)
  75.  
  76. StringGadget(#String_Password, 140, 212, 172, 24, "", #PB_String_Password)
  77. LoadFont(99,"Noto Mono", 11)
  78. SetGadgetFont(#String_Password, FontID(99))
  79. AccChange(#String_Password)
  80. TextGadget(#WrongData, 141, 244, 172, 20, "Проверьте свои данные", #PB_Text_Center)
  81. HideGadget(#WrongData, 1)
  82. LoadFont(#WrongData,"Tahoma", 11)
  83. SetGadgetColor(#WrongData, #PB_Gadget_FrontColor, RGB(244, 67, 54))
  84. SetGadgetColor(#WrongData, #PB_Gadget_BackColor, RGB(63,81,181))
  85. SetGadgetFont(#WrongData, FontID(#WrongData))
  86.  
  87. ButtonGadget(#Button_Enter, 178, 280, 100, 25, "Вход")
  88. LoadFont(100,"Noto Mono", 12)
  89.  
  90. SetGadgetFont(#Button_Enter, FontID(100))
  91.  
  92. EndProcedure
  93.  
  94. OpenWindow_1()
  95.  
  96.  
  97. Procedure Debugdata()
  98. Protected Get_Login.s = GetGadgetText(#String_Login)
  99. Protected Get_Password.s = GetGadgetText(#String_Password)
  100. If Get_Login = "" Or Get_Password = ""
  101. SetGadgetColor(#String_Login, #PB_Gadget_BackColor, RGB(244, 67, 54))
  102. SetGadgetColor(#String_Password, #PB_Gadget_BackColor, RGB(244, 67, 54))
  103. HideGadget(#WrongData, 0)
  104. Else
  105. Debug "Логин: " + Get_Login + " Пароль: " + Get_Password ; <<<=========
  106. EndIf
  107. EndProcedure
  108.  
  109. Repeat
  110. Global Event = WaitWindowEvent()
  111. Global EventGadget=EventGadget()
  112. Global EventType=EventType()
  113. Global EventWindow=EventWindow()
  114. Global Get_Login.s
  115.  
  116. Select Event
  117. Case #PB_Event_Gadget
  118. Select EventGadget
  119.  
  120. Case #String_Login
  121. AccChange(#String_Login)
  122. Case #String_Password
  123. AccChange(#String_Password)
  124. Case #Button_Enter
  125. DebugData()
  126.  
  127. EndSelect
  128. Case #PB_Event_CloseWindow
  129. Select EventWindow
  130. Case #Window
  131. CloseWindow(#Window)
  132. Break
  133. Default
  134. Debug "Закрытие данного окна еще не прописано"
  135. EndSelect
  136. EndSelect
  137. ForEver
  138. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement