Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Freezing/Locking Memory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
CuervoG
Newbie cheater
Reputation: 0

Joined: 01 Oct 2009
Posts: 10

PostPosted: Wed Feb 03, 2010 5:59 pm    Post subject: Freezing/Locking Memory Reply with quote

Hey all,

I know CE trainer maker can freeze an offset but it will only let you do it ine one instance of a client. I'm trying to write a trainer in autoit that will allow more then one patch.

I have figured out how to to Open, Read, Write and close memory using NomadMemory at this point. The issue now is freezing or locking the offsets once they are written to.

Does anyone know of a way to freeze and offset using Nomad, Autoit?

Thanks.

BTW: The folks over on Autoit forums don't want to help anyone cracking games, as I have ask a few times over there.


Oh, and incase anyone wanted to know how to use NomadMemory, since they wont tell you about it at Autoit here is a basic idea.






Code:

#include <NomadMemory.au3>

$PID = ProcessExists("Your program name here")

MsgBox(4096, "PID is", $pid)

$PID1 = WinGetHandle("You progam window title here") ;used to see if your program is running.

$Mem_Open = _MemoryOpen($PID) ;global to open memory

If $PID1 = 0 Then
   MsgBox(0, "Error!", "Process does not exist")
   Exit
EndIf

_MemoryRead(0x005DF7B7, $Mem_Open, 'byte[1]' )
_MemoryWrite(0x005DF7B7, $Mem_Open, "0x90", 'byte[1]' )

_MemoryClose($Mem_Open)

exit



Last edited by CuervoG on Wed Feb 03, 2010 6:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Feb 03, 2010 6:06 pm    Post subject: Reply with quote

well freezing is just looping that edit function. so find yourself a sleep function, then loop the writing part
Back to top
View user's profile Send private message
CuervoG
Newbie cheater
Reputation: 0

Joined: 01 Oct 2009
Posts: 10

PostPosted: Wed Feb 03, 2010 6:08 pm    Post subject: Reply with quote

Slugsnack wrote:
well freezing is just looping that edit function. so find yourself a sleep function, then loop the writing part


That is one way for sure.

But, it seems best to figure out a way to freeze it, like in CE, and then just let the script stop.

I think the other big issue with looping is I wont be able to loop more then one PID at a time thus I wont be able to multi client the freeze.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Wed Feb 03, 2010 7:00 pm    Post subject: Reply with quote

CuervoG wrote:
Slugsnack wrote:
well freezing is just looping that edit function. so find yourself a sleep function, then loop the writing part


That is one way for sure.

But, it seems best to figure out a way to freeze it, like in CE, and then just let the script stop.

I think the other big issue with looping is I wont be able to loop more then one PID at a time thus I wont be able to multi client the freeze.


Use threading then
Back to top
View user's profile Send private message MSN Messenger
KryziK
Expert Cheater
Reputation: 3

Joined: 16 Aug 2009
Posts: 199

PostPosted: Wed Feb 03, 2010 8:28 pm    Post subject: Reply with quote

Auto-it has a single thread unfortunately.
Back to top
View user's profile Send private message
CuervoG
Newbie cheater
Reputation: 0

Joined: 01 Oct 2009
Posts: 10

PostPosted: Thu Feb 04, 2010 2:39 pm    Post subject: Reply with quote

darkjohn20 wrote:
Auto-it has a single thread unfortunately.



Which is why I would have to lock the offset before I could switch $PIDs to lock an offset in a different client.


Any ideas? I wish Nomad would have written a MemoryLock and MemoryUnlock for his Autoit memory UDF.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites