Results 1 to 9 of 9
  1. #1
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54

    [tut] superjump code in vb6

    'ok add this to your module.

    Public Function ReadAFloat(gamewindowtext As String, address As Long, valbuffer As Single)
    Dim hWnd As Long
    Dim pid As Long
    Dim phandle As Long
    hWnd = FindWindow(vbNullString, gamewindowtext)
    If (hWnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    Exit Function
    End If

    GetWindowThreadProcessId hWnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If

    ReadProcessMem phandle, address, valbuffer, 4, 0&
    CloseHandle hProcess
    End Function



    Public Function WriteAFloat(gamewindowtext As String, address As Long, value As Single)
    Dim hWnd As Long
    Dim pid As Long
    Dim phandle As Long

    hWnd = FindWindow(vbNullString, gamewindowtext)
    If (hWnd = 0) Then
    MsgBox "The Game Is Not Working", vbCritical, "Error"
    End
    Exit Function
    End If

    GetWindowThreadProcessId hWnd, pid
    phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
    If (phandle = 0) Then
    MsgBox "Can't get ProcessId", vbCritical, "Error"
    Exit Function
    End If

    WriteProcessMemory phandle, address, value, 4, 0&
    CloseHandle hProcess
    End Function

    --------------------------------------------------------------------------
    'and this is how you write a float,

    Dim jump1 As Long
    Dim jump3 As Single

    '...

    Call ReadALong("WarRock", &H896E28, jump) ' Read a value from memory - I assume the value being read is a pointer
    jump1 = jump + &H180 ' Add 384 (&H180) to the pointer
    jump3 = 2000 ' Assign the value to be written
    Call WriteAFloat("WarRock", jump1, jump3) ' write a floating point value

    if this helps give me rep.

  2. #2
    kingkicker8's Avatar
    Join Date
    Jun 2007
    Posts
    88
    Reputation
    10
    Thanks
    1
    kay.. good tut, but it wont work ^^.. got the modul and:

    Private Sub Timer16_Timer()
    If GetAsyncKeyState(119) <> 0 Then
    Dim jump1 As Long
    Dim jump3 As Single
    Call ReadALong("WarRock", &H896E28, jump1)
    jump1 = jump + &H180
    jump3 = Text2.Text
    Call WriteAFloat("WarRock", jump1, jump3)
    End If
    End Sub


    wont work.. lol.

    EDIT: in readalong, your thing were jump not jump1 .. but its not defined ^^

  3. #3
    smartie's Avatar
    Join Date
    Mar 2007
    Location
    Holland
    Posts
    434
    Reputation
    15
    Thanks
    30
    It's not really a tutorial, just a code....

    You should post the steps you have taken through the whole proces.

  4. #4
    Threadstarter
    Dual-Keyboard Member
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54
    Quote Originally Posted by kingkicker8 View Post
    kay.. good tut, but it wont work ^^.. got the modul and:

    Private Sub Timer16_Timer()
    If GetAsyncKeyState(119) <> 0 Then
    Dim jump1 As Long
    Dim jump3 As Single
    Call ReadALong("WarRock", &H896E28, jump1)
    jump1 = jump + &H180
    jump3 = Text2.Text
    Call WriteAFloat("WarRock", jump1, jump3)
    End If
    End Sub


    wont work.. lol.

    EDIT: in readalong, your thing were jump not jump1 .. but its not defined ^^


    you have to add that module to theredeyes module and it will work

  5. #5
    kingkicker8's Avatar
    Join Date
    Jun 2007
    Posts
    88
    Reputation
    10
    Thanks
    1
    nope.. THIS code dont work.. but if u think a min u can correct it ^^
    miney work well after correct

  6. #6
    Threadstarter
    Dual-Keyboard Member
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54
    w/e man it works fine for me,i dont understand why your havin problems,its a copy and paste.what is so hard about that.

  7. #7
    kingkicker8's Avatar
    Join Date
    Jun 2007
    Posts
    88
    Reputation
    10
    Thanks
    1
    u hadent define jump...

    u just have to add

    dim jump as long

  8. #8
    Threadstarter
    Dual-Keyboard Member
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54
    oh well i had that at the top with the code,but im glad you got it,woot woot

  9. #9
    Threadstarter
    Dual-Keyboard Member
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54
    Quote Originally Posted by cjg333 View Post
    dam hell yea i forgot to put Dim jump As Long,srry
    im glad you got it,woot woot
    IF your having anymore problems hit me up on msn cobra9590@hotmail.com

Similar Threads

  1. [REQ] i need some code's...(vb6)
    By GangBang in forum Visual Basic Programming
    Replies: 4
    Last Post: 05-31-2008, 07:04 PM
  2. Superjump Code?
    By h4x0r m3mb3r in forum WarRock - International Hacks
    Replies: 5
    Last Post: 07-28-2007, 07:33 PM
  3. SuperJump Code...
    By h4x0r m3mb3r in forum WarRock - International Hacks
    Replies: 6
    Last Post: 07-28-2007, 04:37 PM
  4. [Tut] superjump in vb6,how to
    By cjg333 in forum General Game Hacking
    Replies: 1
    Last Post: 07-21-2007, 01:17 AM
  5. [TuT] How to make PW and value box for Guns/Superjump/SkyStormer(VB6)
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-30-2007, 01:09 PM