Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.80 KB | None | 0 0
  1. #cs ----------------------------------------------------------------------------
  2.  
  3.  AutoIt Version: 3.3.6.1
  4.  Author:         myName
  5.  
  6.  Script Function:
  7.     Template AutoIt script.
  8.  
  9. #ce ----------------------------------------------------------------------------
  10.  
  11. ; Script Start - Add your code below here
  12.  
  13. #include <ButtonConstants.au3>
  14. #include <GUIConstantsEx.au3>
  15. #include <WindowsConstants.au3>
  16. #include <nomadmemory.au3>
  17. global $pid = ProcessExists("cabalmain.exe")
  18. global $Baza = =_MemoryRead(0x00842070,$pid,"dword")
  19. global $data = ("10")
  20. global $data1 = ("2")
  21. global $data2 = ("6")
  22. $typ = ("byte")
  23. $openmem = _MEMORYOPEN($pid)
  24. #Region ### START Koda GUI section ### Form=C:\Program Files\AutoIt3\SciTE\Koda\Forms\Form2.kxf
  25. $Form2 = GUICreate("MapHack 0.1", 194, 98, 360, 317)
  26. $Button1 = GUICtrlCreateButton("LS+DS", 8, 16, 75, 25, $WS_GROUP)
  27. $Button2 = GUICtrlCreateButton("PF+DS", 104, 16, 75, 25, $WS_GROUP)
  28. $Button3 = GUICtrlCreateButton("Exit", 64, 56, 75, 25, $WS_GROUP)
  29. GUISetState(@SW_SHOW)
  30. #EndRegion ### END Koda GUI section ###
  31.  
  32. While 1
  33.     $nMsg = GUIGetMsg()
  34.     Switch $nMsg
  35.         Case $GUI_EVENT_CLOSE
  36.             Exit
  37.         Case $Button1
  38.           LSiDS($pid, $data2, $data1, $typ)
  39.       Case $Button2
  40.             PFiDS($pid, $data1, $data, $typ)
  41.         Case $Button3
  42.          exit
  43.  
  44.     EndSwitch
  45. WEnd
  46.  
  47. Func LSiDS($pid, $data1, $data2, $typ)
  48.     while 2
  49.     $openmem = _MemoryOpen($pid)
  50.     _MemoryWrite(0x00C2C5A8, $openmem, $data2)
  51.     _MemoryWrite(0x00C37FB4, $openmem, $data1)
  52.     _MemoryClose($openmem)
  53.     sleep(50)
  54.     wend
  55. EndFunc ;==> Created by CE table converter!
  56.  
  57. Func PFiDS($pid, $data, $data1, $typ)
  58.     $openmem = _MemoryOpen($pid)
  59.     _MemoryWrite(0x00C37FB4, $openmem, $data1)
  60.     _MemoryWrite(0x00C2C5A8, $openmem, $data)
  61.     _MemoryClose($openmem)
  62.     sleep(50)
  63. EndFunc ;==> Created by CE table converter!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement