vivec45 Posted September 23, 2008 Share Posted September 23, 2008 (edited) So I decided to make this name spoofer script for fun (Starcraft Broodwar).. I am not great in autoit, but I thought I would be capable of doing this.. Here is my script: expandcollapse popup#include <NomadMemory.au3> HotKeySet("{F1}", "Spoof") HotKeySet("{F2}", "Quit") $winname = "Brood War" $Spoof_Address = 0x19044EE8 $Lobby_Address = 0x1C4B8 $Channel_Address = 0x59BD74 $Process = WinGetProcess($winname);Get process ID $Mem_Open = _MemoryOpen($Process);Open $orig = InputBox("What is your account name?", "What is your account name?: ");Window name $spoof = InputBox("What is your spoof name?", "What is your spoof name?: ");Window name ;Func Read();Read func ;$read = _MemoryRead($Read_Address, $Mem_Open);Read ;_MemoryClose($Mem_Open);Close ;EndFunc;End read func Func Spoof() $Mem_Open = _MemoryOpen($Process);Open $write = _MemoryWrite($Spoof_Address, $Mem_Open, $spoof);Write _MemoryClose($Mem_Open);Close EndFunc Func Quit() Exit EndFunc ;Anti temp-ban While 1 $lobby = _MemoryRead($Lobby_Address, $Mem_Open);Read _MemoryClose($Mem_Open);Close if ($lobby = 1) Then $Mem_Open = _MemoryOpen($Process);Open $write = _MemoryWrite($Spoof_Address, $Mem_Open, $orig);Write _MemoryClose($Mem_Open);Close Sleep(1) $lobby = 0 Sleep(1) EndIf WEnd The code compiles and runs fine, but I have been unable to get any action out of this script T_T.. I just F1 and simply nothing happens.. It's meant to change the text at the 0x19044EE8 to $spoof.. there is also something that waits to see if you are in the lobby and does some stuff, but I even tried disabling that but it didnt help.. Please take a look at my code and tell me whats wrong, I would appreciate it.. I have attached NomadMemory.au3: NomadMemory.au3 Edited September 23, 2008 by vivec45 Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 23, 2008 Share Posted September 23, 2008 You only open the process once, doing it more than once could cause an error so that might be the problem, also don't close the memory handle until you've closed the script as it will make your reads/writes faster. Your Sleep(1) won't really help with CPU usage and a memory read does not return 1, so that condition will never be met. I also haven't seen others use their conditions in parenthesis so try removing those from your If ($lobby = 1) line. All addresses must be in proper hex so make sure you have all necessary 0s. Also check that the addresses aren't dynamic, as if they are you'll have to read the pointer which is a different function. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
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