Sign in to follow this  
Followers 0
jchilds

Multi-level memory pointers in autoit

8 posts in this topic

using cheat engine to get offsets/pointers

#include <NomadMemory.au3>  
        Global $WindowTitle = "test.exe"
        Global $PID = WinGetProcess($WindowTitle)
        Global $Ptr = 0x0000F04C;pointer
        Global $Off1 = DEC("998");offset 1
        Global $Off2 = DEC("294");offset 2
        Global $Off3 = DEC("FC");offset 3
        Global $Off4 = DEC("1D4");offset 4
        Global $Off5 = DEC("384");offset 5
        $Handle = _MemoryOpen($PID);open memory
        $baseADDR = _MemoryRead($Ptr, $Handle);read base address
      
        $LVL1 =  '0x' & Hex($baseADDR + $Off1);add offset 1 to base address
        $baseADDR =  _MemoryRead($LVL1, $Handle);make new base address
  
        $LVL2 =  '0x' & Hex($baseADDR + $Off2);add offset 2 to new base address
        $baseADDR =  _MemoryRead($LVL2, $Handle);make new base address

        $LVL3 =  '0x' & Hex($baseADDR + $Off3);add offset 3 to new base address
        $baseADDR =  _MemoryRead($LVL3, $Handle);make new base address

        $LVL4 =  '0x' & Hex($baseADDR + $Off4);add offset 4 to new base address
        $baseADDR =  _MemoryRead($LVL4, $Handle);make new base address

        $LVL5 =  '0x' & Hex($baseADDR + $Off5);add offset 5 to new base address
        $baseADDR =  _MemoryRead($LVL5, $Handle); make final address

        MsgBox("Info","Result",  $baseADDR) ; shows value of final address
                _MemoryClose($Handle)

this code returns 0 when I expect 100

am i doing something wrong? any help is greatly appreciated

Share this post


Link to post
Share on other sites



I strongly believe this is for a game. That subject is not allowed here. See the forum rules.

What kind of comment is that?

OMG


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Your strong beliefs are not that important. If you think something violates the forum rules then report it and move on.

Posts like yours really aren't very useful. Au contrair, mon ami.

Don't witch-hunt.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

This definitely is not for a game. If you must know it has something to do with changing volume levels in a voicechat program. Cheat engine is nothing more than a memory editor and is used for more than just video games. I realize these forums are really against using autoit for anything to do with games, but come on... If you don't want to help me that's fine, but don't accuse me of things. I will continue to try and fix my code and search for answers myself, I just thought someone here might have a quick fix or some insight as to what's wrong.

Share this post


Link to post
Share on other sites

Just curious, but are you changing the microphone level or the play level of the chat program? If you're wanting to change the playback volume, there's things like SoundSetWaveVolume or there's a UDF for Vista+ to change the master volume. A search of the example scripts should help you find ways of doing it for both the input and output volume without playing around with memory reads etc.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

This definitely is not for a game. If you must know it has something to do with changing volume levels in a voicechat program. Cheat engine is nothing more than a memory editor and is used for more than just video games. I realize these forums are really against using autoit for anything to do with games, but come on...

Well then, you say you knew our stance and yet you were vague on your first post. How do you expect us to react? Hell, if you click on the google link I gave you see the main topic cheat engine does is hack games. Put yourself in our shoes and look at it from our point of view.

Now, seeing how you want to control the volume on a voice chat program, would you be so kind in sharing the name of the program? There may be other approaches to solving your issue than reading memory. We would be happy to help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0