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 


Visual Basic 2010 and CheatEngine Memory Writing
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
seMtec™
Newbie cheater
Reputation: 0

Joined: 07 Jul 2011
Posts: 22

PostPosted: Wed Jul 13, 2011 5:23 pm    Post subject: Reply with quote

Coool thanks alot, this will work soon not any hard errors anymore.

But 2 things it still need :S.

1. it says this when i debug: (A screen instructions can not be used within a method body. The close method is adopted.) Or something like that.

And then it says: "End Sub" must be preceded by a corresponding sub.

So with the textbox is all right now Wink. But i think i pasted the first code into wrong place, im sure. I added it into the Form1 Public Class. ITs wrong or ??

Kind Regards =)!
Back to top
View user's profile Send private message
seMtec™
Newbie cheater
Reputation: 0

Joined: 07 Jul 2011
Posts: 22

PostPosted: Thu Jul 14, 2011 12:54 pm    Post subject: Reply with quote

Couldn't find the other place where the code should be pasted, omg im so dumb i think :S, i should really learn tuts, but i didn't find anything about this.

Can maybe someone else help me too ?? I just need to know where i have to put this code which Pingo posted :S, vb will not accept it when i paste it just into the Public Class of Form1 or StringTest.vb File.. Sad
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Thu Jul 14, 2011 4:10 pm    Post subject: Reply with quote

Maybe the code is wrong somehow. I'v only been using VB for 3 days so ya never know.
It was more an example so you could get a general idea.

And stop pasting and read through the code. If you see something you dont understand, google it. Understanding it is the most important thing you should be doing.

Anytime i come across something i cant do, 99.9% of the time i can do it with the help of google. Its well worth doing the research.

_________________
Back to top
View user's profile Send private message
seMtec™
Newbie cheater
Reputation: 0

Joined: 07 Jul 2011
Posts: 22

PostPosted: Thu Jul 14, 2011 4:44 pm    Post subject: Reply with quote

Wow 3 Days, respect. I thought that u'r using it since long time oO.

Well yeah, i searched for that System.Runtime thingy and all, but NOTHING, just nothing. I searched for tutorials, but there come only something like: Write .txt file or something dunno. I can't find anything i tried now again a bit but i was so pissed then i dont know what i could change on this code. Or how i should write.

It's so damn hard, it can't be so hard to make a lil application, which allows u, when u type ur Name/text into a textbox and then it changes it in the game/haloce. Isn't it ???

I don't know what i should do now. Trying out codes isnt a good idea, cuz i havnt enough knowledge and understanding knowledge of the codes that i could try on my own. I need some sources or so dunno.

And i dunno who i could ask, i dont know anyone who could help me out there with that. I must/will learn it, but if i havnt any plan what to do now with the code, or so, i can't. Anytime i just get pissed, cuz all my tries going to fail.

Value changing is simple thing. That is easy as hell, but why is string change so damn hard???? To write a program which let u change a value i can write fast, but with string lol.........

I mean now the codes like with:
Code:
Dim ammount As String = TextBox1.Text
Try
       WriteInteger("haloce", &H00000, ammount)

Catch as exception


Just a simple example, works with string adresses too, but dont can add text then it works only with "numbers/values" then and cant add ur Text that u wrote. So im confused.
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Fri Jul 15, 2011 3:07 am    Post subject: Reply with quote

Its not hard if you think about it.
writeprocessmemory only writes an array of bytes.
So all you need to do is convert a ascii or unicode string to array and write it with writeprocessmemory

Search for tutorials on
Get process handle
writeprocessmemory
and convert unicode string to an array of bytes
Those 3 steps is all you need to write a string to memory.

And yea vb for 3-4 days but i code in C#.
If you're just starting out, why dont you go with C#
Its just as easy as VB but better.
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express]Link
And you'l probably find more tutorials aswell.

_________________
Back to top
View user's profile Send private message
seMtec™
Newbie cheater
Reputation: 0

Joined: 07 Jul 2011
Posts: 22

PostPosted: Mon Jul 18, 2011 4:11 pm    Post subject: Reply with quote

Ah okay thanks alot, yeah i will maybe download C#, but its new for me then too so its complicated for me too again. I just want to write a Simple Name Hack Application for halo :S i dunno i just want write something now but i dont get it with these Process handle. ITs the most hardest thing on it i think. With the array of bytes i played a bit in cheatengine. Changed the text adress of my name to array of bytes, then i got numbers and letters like in the Memory. A bit i understood it but not so much ;S.

And in C# i would need someone who could help me there then wit hthe code. If i have downloaded it, can u help me with the code then and test it too on Halo ???? Please =), but i can first download it next week, im not at home that week :S.

EDIT: And maybe u know "Skyline" from HaloCE ??? He wrote a Player Name Hack for haloce too, just something like that i would write. Dunno if u know the name hack of him but on halomaps.org u can find it, maybe u know then how he wrote it or something.

And if u have xfire and wanna add me Wink here it is: fire33lol
also we can play a round if u want. Im a active halo player btw Very Happy

Kind Regards
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
Goto page Previous  1, 2
Page 2 of 2

 
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