Results 1 to 3 of 3
  1. #1
    hack_tr's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    gdfgsdf
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed

    float value to write???

    my friends I have a problem . I Read from jostick events and will in a game memory write the value is must float but not going pls help me


    Code:
    Module Module1
    
        Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
    
        Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As Integer, ByRef lpdwProcessId As Integer) As Integer
        Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddressAsAny As Integer, ByRef lpBufferAsAny As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
        Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddressAsAny As Integer, ByRef lpBufferAsAny As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
        Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer
        Private hPid As Long
        Private hProcess As Long
        Private Const PROCESS_ALL_ACCESS As Long = &H1F0FFF
        Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Integer
        Public Function ReadMemory(ByVal lngAddress As Integer, ByVal value As Single, ByRef intSize As Short) As Integer
            Dim hWnd As Object, processHandle As Object, processId As Integer
    
            hWnd = FindWindow(vbNullString, "THE HOUSE OF THE DEAD 3")
            If (hWnd = 0) Then Application.Exit()
    
            GetWindowThreadProcessId(hWnd, processId)
            processHandle = OpenProcess(PROCESS_ALL_ACCESS, False, processId)
    
            If (intSize > 4) Then intSize = 4
            If (intSize < 1) Then intSize = 1
    
            WriteProcessMemory(processHandle, lngAddress, value, intSize, 0)
    
        End Function
    
        Public Sub writeSingle(ByVal lngAddress As Single, ByVal sngValue As Single)
            ReadMemory(lngAddress, (sngValue), 2)
        End Sub
        
    
    End Module
    Last edited by hack_tr; 08-06-2011 at 09:13 PM.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    Oh my gawd, learn VB.NET or how to use Win32 API functions correctly.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    hack_tr's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    gdfgsdf
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed
    Deleted After formatting, the computer code I had but all the time when I moved in over the long-forgotten

Similar Threads

  1. [Help Request] Round up float value
    By edub18 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 06-14-2011, 01:40 AM
  2. [Help] How to write value NOP
    By jaqq3000 in forum Visual Basic Programming
    Replies: 9
    Last Post: 12-02-2007, 11:46 AM
  3. ASM hacks like OPK,Invi.. in vb6? and VB write big value?
    By o0KoNsY0o in forum WarRock - International Hacks
    Replies: 21
    Last Post: 11-28-2007, 05:51 PM
  4. How to write value "NOP"
    By w00t? in forum Visual Basic Programming
    Replies: 2
    Last Post: 10-10-2007, 12:32 PM
  5. value from a float..?
    By kingkicker8 in forum WarRock - International Hacks
    Replies: 11
    Last Post: 07-01-2007, 12:12 PM