Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import clr
- clr.AddReference('System.Drawing')
- clr.AddReference('System.Windows.Forms')
- from System import Action
- from System.Drawing import *
- from System.Windows.Forms import *
- from random import randint
- w = Screen.PrimaryScreen.Bounds.Width
- h = Screen.PrimaryScreen.Bounds.Height
- class MyForm(Form):
- def __init__(self, main):
- l = Label()
- l.Text = "Hackz tools by Minad\r\nmade for cupz"
- font = Font("Serif", 20)
- l.Font = font
- l.AutoSize = True
- #l.Dock = DockStyle.Fill
- self.Controls.Add(l)
- # Create child controls and initialize form
- e = Timer()
- e.Tick += self.loadhaxs
- self.BackColor = self.BackColor.Red
- e.Interval = 10
- e.Start()
- self.ShowInTaskbar = False
- self.TopMost = True
- self.wayx = 0
- self.wayy = 1
- self.MouseEnter += self.loadacs
- self.FormBorderStyle = self.FormBorderStyle.None
- self.MouseClick += self.getgold
- #self.OnClick += self.getgold
- u = Timer()
- u.Interval = 100
- u.Tick += self.setbot
- u.Start()
- if main:
- t = Timer()
- t.Interval = 500
- t.Tick += self.getgold
- t.Start()
- pass
- def getgold(self, s, d):
- s = MyForm(False)
- s.Show()
- def loadacs(self, s, d):
- if self.Location.X + self.Width/2 < Cursor.Position.X:
- if self.Location.Y + self.Height/2 < Cursor.Position.Y:
- self.Location = Point(Cursor.Position.X -10- self.Width, Cursor.Position.Y-self.Height)
- self.wayy = 0
- else:
- self.Location = Point(Cursor.Position.X -10 - self.Width, Cursor.Position.Y + 10)
- self.wayy = 1
- self.wayx = 0
- else:
- if self.Location.Y + self.Height/2 < Cursor.Position.Y:
- self.Location = Point(Cursor.Position.X +10, Cursor.Position.Y-self.Height)
- self.wayy = 0
- else:
- self.Location = Point(Cursor.Position.X +10, Cursor.Position.Y + 10)
- self.wayy = 1
- self.wayx = 1
- def setbot(self, s, d):
- if self.BackColor == self.BackColor.Red:
- self.BackColor = self.BackColor.Green
- elif self.BackColor == self.BackColor.Green:
- self.BackColor = self.BackColor.Blue
- elif self.BackColor == self.BackColor.Blue:
- self.BackColor = self.BackColor.Red
- def loadhaxs(self, s ,d):
- if self.wayx == 0:
- self.Location = Point(self.Location.X-randint(4,10), self.Location.Y)
- elif self.wayx == 1:
- self.Location = Point(self.Location.X+randint(4,10), self.Location.Y)
- if self.wayy == 0:
- self.Location = Point(self.Location.X, self.Location.Y-randint(4,10))
- elif self.wayy == 1:
- self.Location = Point(self.Location.X, self.Location.Y+randint(4,10))
- if self.Location.X <= 0:
- self.wayx = 1
- elif self.Location.X + self.Width >= w:
- self.wayx = 0
- if self.Location.Y <= 0:
- self.wayy = 1
- elif self.Location.Y + self.Height >= h:
- self.wayy = 0
- Application.EnableVisualStyles()
- Application.SetCompatibleTextRenderingDefault(False)
- if __name__ == "__main__":
- form = MyForm(True)
- Application.Run(form)
- def createForm():
- hackForm = MyForm(True)
- hackForm.Show()
- def start(form):
- action = Action(createForm)
- form.BeginInvoke(action)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement