Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › float value to write???

float value to write???

Posts 1–3 of 3 · Page 1 of 1
HA
hack_tr
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
#1 · edited 15y ago · 15y ago
master131
[MPGH]master131
Oh my gawd, learn VB.NET or how to use Win32 API functions correctly.
#2 · 15y ago
HA
hack_tr
Deleted After formatting, the computer code I had but all the time when I moved in over the long-forgotten
#3 · 15y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • Round up float valueBy edub18 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    3Last post 15y ago
  • value from a float..?By kingkicker8 in WarRock - International Hacks
    11Last post 19y ago
  • How to write value "NOP"By w00t? in Visual Basic Programming
    2Last post 18y ago
  • [Help] How to write value NOPBy jaqq3000 in Visual Basic Programming
    9Last post 18y ago
  • ASM hacks like OPK,Invi.. in vb6? and VB write big value?By o0KoNsY0o in WarRock - International Hacks
    21Last post 18y ago

Tags for this Thread

None