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 


does anyone have a tut for making a trainer using vb8?

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

Joined: 22 Nov 2007
Posts: 54

PostPosted: Sun Dec 02, 2007 1:11 pm    Post subject: does anyone have a tut for making a trainer using vb8? Reply with quote

if so could you post it here?

And i hope this is the right forum for this lol.

_________________
Learning c# and java.

Back to top
View user's profile Send private message AIM Address
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Dec 02, 2007 1:54 pm    Post subject: Reply with quote

I don't think there are any tutorials for vb8, but jsut look at the vb6 tutorial and convert it to vb8, it's similar coding
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sun Dec 02, 2007 3:08 pm    Post subject: Reply with quote

Whats VB 8??? And visual basic 8 is out??? is that .NET???
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Dec 02, 2007 3:13 pm    Post subject: Reply with quote

VB8 is visual basic 8 and yes, it's out
_________________
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Sun Dec 02, 2007 3:20 pm    Post subject: Reply with quote

Create a new project.
Double click My Project (in Solution Explorer)
Go to References.

In imported namespaces, make sure System.Runtime.InteropServices and System.Diagnostics are checked.

Right click on form1.vb -> view code (in Solution Explorer).
Under Public Class Form1 enter this

Code:

<DllImport("kernel32")> _
    Public Shared Function OpenProcess(ByVal dwDesiredAccess As UInteger, _
                                       ByVal bInheriteHandle As Integer, _
                                       ByVal dwProcessId As UInteger) As IntPtr
    End Function

    <DllImport("kernel32")> _
    Public Shared Function CloseHandle(ByVal hWnd As IntPtr) As Integer
    End Function

    <DllImport("kernel32")> _
    Public Shared Function WriteProcessMemory(ByVal hProcess As IntPtr, _
                                              ByVal lpBassAddress As UInteger, _
                                              ByVal lpBuffer As Byte(), _
                                              ByVal nSize As UInteger, _
                                              ByRef lpNumberOfBytesWritten As IntPtr) As Integer
    End Function

    <DllImport("kernel32")> _
    Public Shared Function ReadProcessMemory(ByVal hProcess As IntPtr, _

                                             ByVal lpBaseAddress As UInteger, _
                                             ByRef lpBuff As Byte(), _
                                             ByVal nSize As UInteger, _
                                             ByRef lpNumberOfBytesRead As UInteger) As Integer
    End Function


Add a button and double click it.
In the Click event enter this
Code:

Dim proc As Process() = Process.GetProcessesByName("PINBALL")
        Dim handle As IntPtr = OpenProcess(&H8 Or &H20, 0, proc(0).Id)
        Dim value As Byte() = {&HFF, &HFF, &HFF, &HFF}
        Dim address As UInteger = &HC90C62;
        WriteProcessMemory(handle, address, value, 4, 0)
        CloseHandle(handle)


For WriteProcessMemory, you need to have PROCESS_VM_WRITE (0x20) and PROCESS_VM_OPERATION(0x8) access. Which will be used in OpenProcess. If you are going to use this, add some error checking.



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.

Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Dec 02, 2007 3:22 pm    Post subject: Reply with quote

killersamurai wrote:
Create a new project.
Double click My Project (in Solution Explorer)
Go to References.

In imported namespaces, make sure System.Runtime.InteropServices and System.Diagnostics are checked.

Right click on form1.vb -> view code (in Solution Explorer).
Under Public Class Form1 enter this

Code:

<DllImport("kernel32")> _
    Public Shared Function OpenProcess(ByVal dwDesiredAccess As UInteger, _
                                       ByVal bInheriteHandle As Integer, _
                                       ByVal dwProcessId As UInteger) As IntPtr
    End Function

    <DllImport("kernel32")> _
    Public Shared Function CloseHandle(ByVal hWnd As IntPtr) As Integer
    End Function

    <DllImport("kernel32")> _
    Public Shared Function WriteProcessMemory(ByVal hProcess As IntPtr, _
                                              ByVal lpBassAddress As UInteger, _
                                              ByVal lpBuffer As Byte(), _
                                              ByVal nSize As UInteger, _
                                              ByRef lpNumberOfBytesWritten As IntPtr) As Integer
    End Function

    <DllImport("kernel32")> _
    Public Shared Function ReadProcessMemory(ByVal hProcess As IntPtr, _

                                             ByVal lpBaseAddress As UInteger, _
                                             ByRef lpBuff As Byte(), _
                                             ByVal nSize As UInteger, _
                                             ByRef lpNumberOfBytesRead As UInteger) As Integer
    End Function


Add a button and double click it.
In the Click event enter this
Code:

Dim proc As Process() = Process.GetProcessesByName("PINBALL")
        Dim handle As IntPtr = OpenProcess(&H8 Or &H20, 0, proc(0).Id)
        Dim value As Byte() = {&HFF, &HFF, &HFF, &HFF}
        Dim address As UInteger = &HC90C62;
        WriteProcessMemory(handle, address, value, 4, 0)
        CloseHandle(handle)


For WriteProcessMemory, you need to have PROCESS_VM_WRITE (0x20) and PROCESS_VM_OPERATION(0x8) access. Which will be used in OpenProcess. If you are going to use this, add some error checking.


That doesn't look like visual basic 8 code
And I think he wants a tutorial on making a flash trainer, not an .exe trainer Rolling Eyes

_________________
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Sun Dec 02, 2007 3:40 pm    Post subject: Reply with quote

vb 7 = .NET Framework 1.1
vb 8 = .NET Framework 2.0
vb 9 = .NET Framework 3.0

This is the same for c#

c# 1.0 = .NET Framework 1.0
c# 2.0 = .NET Framework 2.0
c# 3.0 = .NET Framework 3.0
c# 3.5 = .NET Framework 3.5
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