Advertisement
Guest User

x

a guest
Jan 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. import clr
  2. clr.AddReference('System.Drawing')
  3. clr.AddReference('System.Windows.Forms')
  4.  
  5. from System import Action
  6. from System.Drawing import *
  7. from System.Windows.Forms import *
  8. from random import randint
  9. w = Screen.PrimaryScreen.Bounds.Width
  10. h = Screen.PrimaryScreen.Bounds.Height
  11.  
  12. class MyForm(Form):
  13. def __init__(self, main):
  14. l = Label()
  15. l.Text = "Hackz tools by Minad\r\nmade for cupz"
  16. font = Font("Serif", 20)
  17. l.Font = font
  18. l.AutoSize = True
  19. #l.Dock = DockStyle.Fill
  20. self.Controls.Add(l)
  21. # Create child controls and initialize form
  22. e = Timer()
  23. e.Tick += self.loadhaxs
  24. self.BackColor = self.BackColor.Red
  25. e.Interval = 10
  26. e.Start()
  27. self.ShowInTaskbar = False
  28. self.TopMost = True
  29.  
  30.  
  31. self.wayx = 0
  32. self.wayy = 1
  33. self.MouseEnter += self.loadacs
  34. self.FormBorderStyle = self.FormBorderStyle.None
  35. self.MouseClick += self.getgold
  36.  
  37. #self.OnClick += self.getgold
  38. u = Timer()
  39. u.Interval = 100
  40. u.Tick += self.setbot
  41. u.Start()
  42. if main:
  43. t = Timer()
  44. t.Interval = 500
  45. t.Tick += self.getgold
  46. t.Start()
  47. pass
  48.  
  49. def getgold(self, s, d):
  50. s = MyForm(False)
  51. s.Show()
  52.  
  53.  
  54.  
  55. def loadacs(self, s, d):
  56. if self.Location.X + self.Width/2 < Cursor.Position.X:
  57. if self.Location.Y + self.Height/2 < Cursor.Position.Y:
  58. self.Location = Point(Cursor.Position.X -10- self.Width, Cursor.Position.Y-self.Height)
  59. self.wayy = 0
  60. else:
  61. self.Location = Point(Cursor.Position.X -10 - self.Width, Cursor.Position.Y + 10)
  62. self.wayy = 1
  63. self.wayx = 0
  64. else:
  65. if self.Location.Y + self.Height/2 < Cursor.Position.Y:
  66. self.Location = Point(Cursor.Position.X +10, Cursor.Position.Y-self.Height)
  67. self.wayy = 0
  68. else:
  69. self.Location = Point(Cursor.Position.X +10, Cursor.Position.Y + 10)
  70. self.wayy = 1
  71. self.wayx = 1
  72.  
  73. def setbot(self, s, d):
  74. if self.BackColor == self.BackColor.Red:
  75. self.BackColor = self.BackColor.Green
  76. elif self.BackColor == self.BackColor.Green:
  77. self.BackColor = self.BackColor.Blue
  78. elif self.BackColor == self.BackColor.Blue:
  79. self.BackColor = self.BackColor.Red
  80.  
  81.  
  82. def loadhaxs(self, s ,d):
  83.  
  84.  
  85. if self.wayx == 0:
  86. self.Location = Point(self.Location.X-randint(4,10), self.Location.Y)
  87. elif self.wayx == 1:
  88. self.Location = Point(self.Location.X+randint(4,10), self.Location.Y)
  89.  
  90. if self.wayy == 0:
  91. self.Location = Point(self.Location.X, self.Location.Y-randint(4,10))
  92. elif self.wayy == 1:
  93. self.Location = Point(self.Location.X, self.Location.Y+randint(4,10))
  94.  
  95. if self.Location.X <= 0:
  96. self.wayx = 1
  97. elif self.Location.X + self.Width >= w:
  98. self.wayx = 0
  99.  
  100. if self.Location.Y <= 0:
  101. self.wayy = 1
  102. elif self.Location.Y + self.Height >= h:
  103. self.wayy = 0
  104.  
  105.  
  106.  
  107. Application.EnableVisualStyles()
  108. Application.SetCompatibleTextRenderingDefault(False)
  109.  
  110. if __name__ == "__main__":
  111. form = MyForm(True)
  112. Application.Run(form)
  113.  
  114. def createForm():
  115. hackForm = MyForm(True)
  116. hackForm.Show()
  117.  
  118. def start(form):
  119. action = Action(createForm)
  120. form.BeginInvoke(action)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement