Advertisement
Guest User

Untitled

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