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 


[Help] [VB.Net] Changing the value length

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
PapaBeans
How do I cheat?
Reputation: 0

Joined: 24 Aug 2014
Posts: 3

PostPosted: Sun Aug 24, 2014 10:26 pm    Post subject: [Help] [VB.Net] Changing the value length Reply with quote

Hey guys,

First post here so I apologize that it isn't helping, but asking for help. I'm working on a Memory Scanner in VB. It's almost instant with writing the values, very nice! The only thing is it will not allow me to change the LENGTH of values written.

Ex:
Lets say I want to change the name of this topic.

[Help] [VB.Net] Changing the value length


So by looking in my program it tells me that the length is 41. If I tried to change itto a shorter value, let's say:
Wow I wish I could solve this!


Then it would (and does) display:
Wow I wish I could solve this!alue length


If I change it to a longer value like:
This is a way longer value than the original value of my title

Then it would(and does) display:
This is a way longer value than the origi


=============================================

For whatever reason it won't allow me to change the length, even if I change it in WriteProcessMemory().

Calling it goes like this:
WriteProcessMemory(Process, address, Value, Length, NumberOfBytesWritten)

When I change the length shorter it changes the first couple letters.

Any ideas? Tried to make this easy to read, hard to explain and don't want to hand out code.

Thank you for your time,
Papa Beans
Back to top
View user's profile Send private message
KryziK
Expert Cheater
Reputation: 3

Joined: 16 Aug 2009
Posts: 199

PostPosted: Sun Aug 24, 2014 11:13 pm    Post subject: Reply with quote

To make it shorter, make sure you're appending a null character (0x00) to the end of the string.

As far as longer, where is this string being displayed? Are you talking about it being cut off in the original program or in your memory scanner?
Back to top
View user's profile Send private message
PapaBeans
How do I cheat?
Reputation: 0

Joined: 24 Aug 2014
Posts: 3

PostPosted: Mon Aug 25, 2014 2:38 am    Post subject: Reply with quote

KryziK wrote:
To make it shorter, make sure you're appending a null character (0x00) to the end of the string.

As far as longer, where is this string being displayed? Are you talking about it being cut off in the original program or in your memory scanner?


I am talking about it being cut off in the original program, like notepad++.
Back to top
View user's profile Send private message
KryziK
Expert Cheater
Reputation: 3

Joined: 16 Aug 2009
Posts: 199

PostPosted: Wed Aug 27, 2014 12:55 pm    Post subject: Reply with quote

PapaBeans wrote:
KryziK wrote:
To make it shorter, make sure you're appending a null character (0x00) to the end of the string.

As far as longer, where is this string being displayed? Are you talking about it being cut off in the original program or in your memory scanner?


I am talking about it being cut off in the original program, like notepad++.


Then it may be possible that the program sets some sort of length limit that isn't getting updated when you change the string? It's hard to say because many programs could do this in different ways.
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