Advertisement
Guest User

Untitled

a guest
Jul 24th, 2011
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 3.77 KB | None | 0 0
  1. ; =========================================================================================================================\
  2. ;
  3. ;   0x0050F5BC; this is responsible for the power
  4. ;   0x0050F5B8; this is responsible for the volume
  5. ;   0x0050F5B4; this is responsible for the multiplyer
  6. ;   0x0050C15C; this is responsible for the number of lifes
  7. ;   0x0050C158; this is responsible for the points
  8. ;
  9. ; ==========================================================================================================================\
  10.  
  11.  
  12. #RequireAdmin
  13. #include <NomadMemory.au3>
  14. #include <ButtonConstants.au3>
  15. #include <GUIConstantsEx.au3>
  16. #include <StaticConstants.au3>
  17. #include <WindowsConstants.au3>
  18.  
  19. Dim $adress1
  20. Dim $adress2
  21. Dim $adress3
  22. Dim $adress4
  23. Dim $adress5
  24. Dim $ID
  25. Dim $Input1
  26.  
  27. $adress1 = 0x0050F5BC; this is responsible for the power
  28. $adress2 = 0x0050F5B8; this is responsible for the volume
  29. $adress3 = 0x0050F5B4; this is responsible for the multiplyer
  30. $adress4 = 0x0050C15C; this is responsible for the number of lifes
  31. $adress5 = 0x0050C158; this is responsible for the points
  32. $adress6 = 0x0050C160; this is responsible for the bombs
  33.  
  34. Func pw()
  35.     $value = 5
  36.     $ID = _MemoryOpen(ProcessExists("BeatHazard.exe"))
  37.     _MemoryWrite($adress1, $ID, $value)
  38.     _MemoryClose($ID)
  39. EndFunc
  40.  
  41. Func vl()
  42.     $value = 5
  43.     $ID = _MemoryOpen(ProcessExists("BeatHazard.exe"))
  44.     _MemoryWrite($adress2, $ID, $value)
  45.     _MemoryClose($ID)
  46. EndFunc
  47.  
  48. Func lf()
  49.     $value = $Input1
  50.     $ID = _MemoryOpen(ProcessExists("BeatHazard.exe"))
  51.     _MemoryWrite($adress4, $ID, $value)
  52.     _MemoryClose($ID)
  53. EndFunc
  54.  
  55. Func mp()
  56.     $value = 99
  57.     $ID = _MemoryOpen(ProcessExists("BeatHazard.exe"))
  58.     _MemoryWrite($adress3, $ID, $value)
  59.     _MemoryClose($ID)
  60. EndFunc
  61.  
  62. Func bb()
  63.     $value = $Input1
  64.     $ID = _MemoryOpen(ProcessExists("BeatHazard.exe"))
  65.     _MemoryWrite($adress6, $ID, $value)
  66.     _MemoryClose($ID)
  67. EndFunc
  68.  
  69. #include <ButtonConstants.au3>
  70. #include <EditConstants.au3>
  71. #include <GUIConstantsEx.au3>
  72. #include <StaticConstants.au3>
  73. #include <WindowsConstants.au3>
  74. #Region ### START Koda GUI section ### Form=
  75. $Form1 = GUICreate("Beat Hazard Trainer", 218, 359, 389, 87)
  76. GUISetBkColor(0x0000FF)
  77. $Label1 = GUICtrlCreateLabel("Beat Hazard Trainer", 16, 8, 190, 28)
  78. GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
  79. GUICtrlSetColor(-1, 0xFF0000)
  80. $Button1 = GUICtrlCreateButton("Max Power", 24, 80, 163, 33)
  81. $Button2 = GUICtrlCreateButton("Max Volume", 24, 128, 163, 33)
  82. $Group1 = GUICtrlCreateGroup("Extra Options:", 24, 168, 161, 177)
  83. $Input1 = GUICtrlCreateInput("", 112, 184, 65, 21)
  84. $Button3 = GUICtrlCreateButton("Lifes", 32, 184, 57, 25)
  85. $Button4 = GUICtrlCreateButton("99x Score Multiplier", 32, 224, 147, 25)
  86. $Button5 = GUICtrlCreateButton("Super Bombs", 32, 264, 145, 25)
  87. $Button6 = GUICtrlCreateButton("Exit", 112, 304, 65, 25)
  88. $Button7 = GUICtrlCreateButton("Information", 32, 304, 65, 25)
  89. GUICtrlCreateGroup("", -99, -99, 1, 1)
  90. $Label2 = GUICtrlCreateLabel("Beat Hazard: Running", 16, 48, 182, 24)
  91. GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
  92. GUICtrlSetColor(-1, 0x00FF00)
  93. GUISetState(@SW_SHOW)
  94. #EndRegion ### END Koda GUI section ###
  95.  
  96.  
  97. If ProcessExists ("BeatHazard.exe") Then
  98.         MsgBox (0, "Beat Hazard Trainer", "Beat Hazard Running, Press Ok and Select Your Options.")
  99.     Else
  100.         MsgBox (0, "Beat Hazard Trainer", "Beat Hazard Not Running, Please Run The Game And Them Run the Trainer.")
  101.         Exit
  102. EndIf
  103.  
  104.  
  105. While 1
  106.     $nMsg = GUIGetMsg()
  107.     Switch $nMsg
  108.         Case $GUI_EVENT_CLOSE
  109.             Exit
  110.         Case $Button1
  111.             pw()
  112.         Case $Button2
  113.             vl()
  114.         Case $Button3
  115.             lf()
  116.         Case $Button4
  117.             mp()
  118.         Case $Button5
  119.             bb()
  120.         Case $Button6
  121.             Exit
  122.         Case $Button7
  123.             MsgBox (0, "Beat Hazard Trainer", "Trainer Made By xXBarataXx" & @CRLF & "Version 1.1 With GUI" & @CRLF & "Special Thanks To aosma8")
  124.         EndSwitch
  125. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement