hellgoth Posted February 2, 2009 Posted February 2, 2009 i"ve got a small problem with this script #include <NomadMemory.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> dim $temp SetPrivilege("SeDebugPrivilege", 1) $pid = WinGetProcess("Warblade 1.32") $ID = _MemoryOpen($pid) $pic = GUICreate("Form1", 101, 633, 214, 101) $Z_Pos = GUICtrlCreateButton("Z_Pos", 8, 8, 81, 33, 0) $Input1 = GUICtrlCreateInput("Z_Pos", 8, 48, 81, 21) $MaxHP = GUICtrlCreateButton("MaxHP", 8, 72, 81, 33, 0) $MaxArmour = GUICtrlCreateButton("MaxArmour", 8, 112, 81, 33, 0) $RankMarks = GUICtrlCreateButton("RankMarks", 8, 152, 81, 33, 0) $SingleShot = GUICtrlCreateButton("SingleShot", 8, 224, 81, 33, 0) $DoubleShot = GUICtrlCreateButton("DoubleShot", 8, 264, 81, 33, 0) $TripleShot = GUICtrlCreateButton("TripleShot", 8, 304, 81, 33, 0) $QuadShot = GUICtrlCreateButton("QuadShot", 8, 344, 81, 33, 0) $SuperTripleShot = GUICtrlCreateButton("SuperTripleShot", 8, 384, 81, 33, 0) $Plasma = GUICtrlCreateButton("Plasma", 8, 424, 81, 33, 0) $FireBall = GUICtrlCreateButton("FireBall", 8, 464, 81, 33, 0) $Laser = GUICtrlCreateButton("Laser", 8, 504, 81, 33, 0) $WarPlasma = GUICtrlCreateButton("WarPlasma", 8, 544, 81, 33, 0) $SomeThing = GUICtrlCreateButton("SomeThing", 8, 584, 81, 33, 0) $Weapons = GUICtrlCreateGroup("Weapons", 0, 192, 97, 433) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW, $pic) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Case $Z_Pos Z_Pos() Case $SingleShot weapon1() Case $DoubleShot weapon2() Case $TripleShot weapon3() Case $QuadShot weapon4() Case $SuperTripleShot weapon5() Case $Plasma weapon6() Case $FireBall weapon7() Case $Laser weapon8() Case $WarPlasma weapon9() Case $SomeThing weapon10() EndSwitch WEnd Func Z_Pos() _memorywrite(0x0089F3164, $ID, GUICtrlRead($Input1)) EndFunc Func weapon1() _memorywrite(0x00844698C, $ID, 524288) EndFunc Func weapon2() _memorywrite(0x00844698C, $ID, 524289) EndFunc Func weapon3() _memorywrite(0x00844698C, $ID, 524290) EndFunc Func weapon4() _memorywrite(0x00844698C, $ID, 524291) EndFunc Func weapon5() _memorywrite(0x00844698C, $ID, 524292) EndFunc Func weapon6() _memorywrite(0x00844698C, $ID, 524293) EndFunc Func weapon7() _memorywrite(0x00844698C, $ID, 524294) EndFunc Func weapon8() _memorywrite(0x00844698C, $ID, 524295) EndFunc Func weapon9() _memorywrite(0x00844698C, $ID, 524296) EndFunc Func weapon10() _memorywrite(0x00844698C, $ID, 524297) EndFunc $val = GUICreate("Form1", 101, 516, 1120, 101) $Rank = GUICtrlCreateButton("Rank", 8, 8, 81, 33, 0) $Input1 = GUICtrlCreateInput("Rank", 8, 48, 81, 21) $UFO = GUICtrlCreateButton("UFO", 8, 80, 81, 33, 0) $NextLevel = GUICtrlCreateButton("NextLevel", 8, 120, 81, 33, 0) $BackLevel = GUICtrlCreateButton("BackLevel", 8, 160, 81, 33, 0) $BossHP_0 = GUICtrlCreateButton("BossHP_0", 8, 200, 81, 33, 0) $Scoop = GUICtrlCreateButton("Scoop", 8, 240, 81, 33, 0) $Freezy = GUICtrlCreateButton("Freezy", 8, 280, 81, 33, 0) $AutoFire = GUICtrlCreateButton("AutoFire", 8, 320, 81, 33, 0) $EventWin = GUICtrlCreateButton("EvenTWin", 8, 360, 81, 33, 0) $UFOs_Number = GUICtrlCreateButton("MoneyMachine", 8, 408, 81, 33, 0) GUISetState(@SW_SHOW, $val) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE EndSwitch WEnd $gui = GUICreate("Warblade 1.32 Trainer By Hellgoth", 1007, 38, 214, 65) $Input5 = GUICtrlCreateInput("Money", 80, 8, 41, 21) $Penz = GUICtrlCreateButton("Money", 8, 8, 65, 25, 0) $Rockets = GUICtrlCreateButton("Rockets", 128, 8, 65, 25, 0) $Input6 = GUICtrlCreateInput("Rockets", 200, 8, 49, 21) $LvL = GUICtrlCreateButton("LvL", 256, 8, 73, 25, 0) $Input7 = GUICtrlCreateInput("Level", 336, 8, 65, 21) $Bullet = GUICtrlCreateButton("Bullet", 408, 8, 89, 25, 0) $Speed = GUICtrlCreateButton("Speed", 504, 8, 89, 25, 0) $Time = GUICtrlCreateButton("Time", 600, 8, 81, 25, 0) $Score = GUICtrlCreateButton("Score", 688, 8, 73, 25, 0) $Input8 = GUICtrlCreateInput("Score", 768, 8, 225, 21) GUISetState(@SW_SHOW, $gui) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Case $Rockets rockets() Case $Bullet Bullet() Case $LvL level() Case $Penz money() Case $Speed speed() Case $Time time() Case $Score score() EndSwitch WEnd Func rockets() _memorywrite(0x00846ce0, $ID, GUICtrlRead($Input6)) EndFunc Func Bullet() _memorywrite(0x00844698E, $ID, 45) EndFunc Func level() _memorywrite(0x008446914, $ID, GUICtrlRead($Input7)) EndFunc Func money() _memorywrite(0x0084468EC, $ID, GUICtrlRead($Input5)) EndFunc Func speed() _memorywrite(0x0083CFDFC, $ID, 45) EndFunc Func time() _memorywrite(0x008446998, $ID, 45) EndFunc Func score() _memorywrite(0x0084468B8, $ID, GUICtrlRead($Input8)) EndFunc i dont know why but only work it: Func rockets() _memorywrite(0x00846ce0, $ID, GUICtrlRead($Input6)) EndFunc what's the problem with the $ID in the other funcs? sorry the english
BrettF Posted February 2, 2009 Posted February 2, 2009 Hi, Do you get any errors? Also, please use [ code ] [/code ] tags in the future (remove the spaces ). And while I think of it, your GUIs seem strange, because you can never close GUI number 1. How do you expect to get to the others? Also check your memory functions, they seem slightly out to me Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now