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 


[C++] Scan

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Mon Oct 01, 2007 8:30 pm    Post subject: [C++] Scan Reply with quote

In C++, how do i scan for values in a certain process, set a value for all the addresses found, and freeze them.

Please help me asap Laughing
Back to top
View user's profile Send private message AIM Address MSN Messenger
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Mon Oct 01, 2007 10:51 pm    Post subject: Reply with quote

ReadProcessMemory
WriteProcessMemory

To freeze the value just make a timer that executes the code for WriteProcessMemory.

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Noz3001
I'm a spammer
Reputation: 26

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

PostPosted: Tue Oct 02, 2007 2:32 am    Post subject: Reply with quote

oib111 wrote:
ReadProcessMemory
WriteProcessMemory

To freeze the value just make a timer that executes the code for WriteProcessMemory.


No, first you should read it to see if its changed. No point in constantly writing a value if it doesnt change.
Back to top
View user's profile Send private message MSN Messenger
Cx
Master Cheater
Reputation: 0

Joined: 27 Jul 2007
Posts: 367

PostPosted: Tue Oct 02, 2007 7:46 am    Post subject: Reply with quote

Noz, yeah, that's more efficient, but technically freezing is looping a poke.
_________________

armed with this small butterfly net
i will face the world alone
& never be lonely.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25821
Location: The netherlands

PostPosted: Tue Oct 02, 2007 7:56 am    Post subject: Reply with quote

Actually, readprocessmemory takes as long as writeprocessmemory
so first checking with readprocessmemory and then writing with writeprocessmemory will take twice the time

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Oct 02, 2007 3:07 pm    Post subject: Reply with quote

Well Dark Byte would you care to tell us how you froze values in Cheat Engine?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Potatoes
Newbie cheater
Reputation: 0

Joined: 25 Sep 2007
Posts: 16

PostPosted: Tue Oct 02, 2007 3:37 pm    Post subject: Reply with quote

WPM.
_________________
I IS VOID
Back to top
View user's profile Send private message
Cx
Master Cheater
Reputation: 0

Joined: 27 Jul 2007
Posts: 367

PostPosted: Tue Oct 02, 2007 5:31 pm    Post subject: Reply with quote

Dark Byte wrote:
Actually, readprocessmemory takes as long as writeprocessmemory
so first checking with readprocessmemory and then writing with writeprocessmemory will take twice the time

Fuck, duh. Slipped my mind.

_________________

armed with this small butterfly net
i will face the world alone
& never be lonely.
Back to top
View user's profile Send private message
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Wed Oct 03, 2007 4:20 pm    Post subject: Reply with quote

Inject a DLL, hook the function that changes its value, and make it.. not change the value.
_________________


Don't laugh, I'm still learning photoshop!
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 Oct 03, 2007 4:32 pm    Post subject: Reply with quote

TheSorc3r3r wrote:
Inject a DLL, hook the function that changes its value, and make it.. not change the value.



Excentric..
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Oct 04, 2007 1:43 am    Post subject: Reply with quote

TheSorc3r3r wrote:
Inject a DLL, hook the function that changes its value, and make it.. not change the value.


Don't need to hook the function to achieve that effect Mad Could do it by a simple cave to alter the code, or nopping out the instruction. Or if its a simple byte switch or enough bytes to make the change, a simple switch, something like dec to inc.
Back to top
View user's profile Send private message Visit poster's website
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Thu Oct 04, 2007 5:28 pm    Post subject: Reply with quote

lol eccentricity FTW!
_________________


Don't laugh, I'm still learning photoshop!
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