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# Problem

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

Joined: 19 Feb 2012
Posts: 7

PostPosted: Sat Aug 18, 2012 5:21 am    Post subject: C# Problem Reply with quote

Hello i had a problem. - I'm working in C # Hack, but I only WriteProcessMemory there, but that's not me, it's just me .. Write Pointer. My code:

Code:
oMemory.Open();
                oMemory.ReadProcess = aProcesses[0];


                int iStep2_Address = Addr.ToDec(TEXTBOX2()); //The static address of the pointer (#1)
                int[] iStep2_Offsets = { }; //Offsets from bottom to top (#2-#6)

                int bytesWritten; //Holds how many bytes were written by PointerWrite

                int iValue_To_Write = int.Parse(speedValue.Text); //Value that we want to write (Step2 requires that you change the value to 1000)
                byte[] bValue_To_Write = BitConverter.GetBytes(iValue_To_Write); //Turns 1000 into bytes

                string sWritten_Address = oMemory.PointerWrite((IntPtr)iStep2_Address, //PointerWrite starting with our Step2 Address
                                    bValue_To_Write, //The value to write (as bytes)
                                    iStep2_Offsets, //Our offsets
                                    out bytesWritten); //Stores the # of Written
BytesAnd


I need to address was the TextBox2. Sorry, I'm noob in C # So far, I programmed in VB
And I can not find any tutorial
Excuse my English, im from czech
Back to top
View user's profile Send private message
Unbr0ken
Advanced Cheater
Reputation: 2

Joined: 10 Aug 2011
Posts: 67

PostPosted: Sat Aug 18, 2012 2:06 pm    Post subject: Reply with quote

You should learn how to walk be fore run boy.

Learn the basics first; Then go ahead with the windows memory management.

By the way:

Code:
TextBox2.Text.ToInt32()


Should work, I guess, not tested yet.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
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