Guest User

Mana.vb

a guest
Aug 14th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.83 KB | None | 0 0
  1. Module Mana
  2.     Public Sub CheckMana()
  3.         Dim _myBytes(3) As Byte
  4.         ReadProcessMemory(_targetProcessHandle, addr_Mana, _myBytes, 4, vbNull)
  5.         Dim Mana_Points = BitConverter.ToInt32(_myBytes, 0).ToString
  6.         Bot.txtMana.Text = "MANA: " + Mana_Points
  7.  
  8.         If Mana_Points > CInt(Bot.txtManaForSpell.Text) Then
  9.             If getBusy = False And getManaTrain = True Then
  10.                 Try
  11.                     getBusy = True
  12.                     AppActivate(_targetProcess.Id)
  13.                     My.Computer.Keyboard.SendKeys(Bot.txtSpell.Text, True)
  14.                     My.Computer.Keyboard.SendKeys("{ENTER}", True)
  15.                     getBusy = False
  16.                 Catch ex As Exception
  17.                     getBusy = False
  18.                 End Try
  19.             End If
  20.         End If
  21.     End Sub
  22. End Module
Add Comment
Please, Sign In to add comment