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 


[Question]Trainer in visual basic 2008?

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

Joined: 05 May 2007
Posts: 232
Location: The Netherlands

PostPosted: Tue Aug 26, 2008 12:45 pm    Post subject: [Question]Trainer in visual basic 2008? Reply with quote

Is it possible?
I mean a trainer with memory-editing, not just a flash-game trainer.

Please don't tell me to learn another language.
I tried C++ but i felt more like learning VB Razz

Thanks in advance
Back to top
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Tue Aug 26, 2008 12:47 pm    Post subject: Reply with quote

I don't think you can, but you can in delphi, and VB isnt much of a good language, You should learn c++.
Back to top
View user's profile Send private message
xDemonx
Expert Cheater
Reputation: 0

Joined: 05 May 2007
Posts: 232
Location: The Netherlands

PostPosted: Tue Aug 26, 2008 1:04 pm    Post subject: Reply with quote

kb3z0n wrote:
I don't think you can, but you can in delphi, and VB isnt much of a good language, You should learn c++.

Lol, i've learned HTML and a bit of C++
But i hate to code much, with not much result.

And if anyone viewing this thread knows in which programming language darkwalk's private server trainer 1.2 is made (maplestory) i would like to know...

because i want to start making trainers for maplestory private servers (no GG yay)
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Aug 26, 2008 1:51 pm    Post subject: Reply with quote

Basics to Read/WriteProcessMemory, I'm sure you can manage creating 2 buttons and a textbox on your form as well as a few other minor changes. Right now it just goofs with the timer in minesweeper.

I still much prefer C/C++

Code:
Imports System.Runtime.InteropServices
Public Class Form1
    <DllImport("kernel32.dll")> _
        Public Shared Function WriteProcessMemory( _
        ByVal hProcess As IntPtr, _
        ByVal lpBaseAddress As IntPtr, _
        ByVal lpBuffer As Byte(), _
        ByVal nSize As UInt32, _
        ByRef lpNumberOfBytesWritten As UInt32 _
    ) As Boolean
    End Function

    <DllImport("kernel32.dll")> _
       Public Shared Function ReadProcessMemory( _
        ByVal hProcess As IntPtr, _
        ByVal lpBaseAddress As IntPtr, _
        ByVal lpBuffer As Byte(), _
        ByVal iSize As UInt32, _
        ByRef lpNumberOfBytesRead As UInt32 _
    ) As Boolean
    End Function

    Dim p As Process() = Process.GetProcessesByName("winmine")
    Dim buffer As Byte() = New Byte(3) {}

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WriteProcessMemory(p(0).Handle, &H100579C, New Byte() {&HFF}, 4, 0)
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        ReadProcessMemory(p(0).Handle, &H100579C, buffer, 4, 0)
        TextBox1.Text = Convert.ToString(BitConverter.ToUInt32(buffer, 0))
    End Sub
End Class
Back to top
View user's profile Send private message
xDemonx
Expert Cheater
Reputation: 0

Joined: 05 May 2007
Posts: 232
Location: The Netherlands

PostPosted: Wed Aug 27, 2008 12:13 am    Post subject: Reply with quote

slovach wrote:
Basics to Read/WriteProcessMemory, I'm sure you can manage creating 2 buttons and a textbox on your form as well as a few other minor changes. Right now it just goofs with the timer in minesweeper.

I still much prefer C/C++

Code:
Imports System.Runtime.InteropServices
Public Class Form1
    <DllImport("kernel32.dll")> _
        Public Shared Function WriteProcessMemory( _
        ByVal hProcess As IntPtr, _
        ByVal lpBaseAddress As IntPtr, _
        ByVal lpBuffer As Byte(), _
        ByVal nSize As UInt32, _
        ByRef lpNumberOfBytesWritten As UInt32 _
    ) As Boolean
    End Function

    <DllImport("kernel32.dll")> _
       Public Shared Function ReadProcessMemory( _
        ByVal hProcess As IntPtr, _
        ByVal lpBaseAddress As IntPtr, _
        ByVal lpBuffer As Byte(), _
        ByVal iSize As UInt32, _
        ByRef lpNumberOfBytesRead As UInt32 _
    ) As Boolean
    End Function

    Dim p As Process() = Process.GetProcessesByName("winmine")
    Dim buffer As Byte() = New Byte(3) {}

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WriteProcessMemory(p(0).Handle, &H100579C, New Byte() {&HFF}, 4, 0)
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        ReadProcessMemory(p(0).Handle, &H100579C, buffer, 4, 0)
        TextBox1.Text = Convert.ToString(BitConverter.ToUInt32(buffer, 0))
    End Sub
End Class


Thx for the help..

I think i will start learning C++ again, since many people say it's harder to learn C++ when you know VB..
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