GithubHelp home page GithubHelp logo

example calls? about classmemory HOT 2 OPEN

ElectroLund avatar ElectroLund commented on August 20, 2024
example calls?

from classmemory.

Comments (2)

imm0r avatar imm0r commented on August 20, 2024
#include, Offsets.ahk

GD := new _ClassMemory( cliname, "", hProcessCopy )

; RETRIEVING BASE ADDRESS BY USING AN ARRAY OF BYTES
GetBasePointer( )
{
	Global GD, mBase, Cliname, basePtrAoBArrayDec, basePtrAoBOffset, bptr, bPtrAoB, bPtrAdd1, BasePointer
	Static CGSN, CGSO
	
	If WinExist( cliname )
	{
		CGSO := GetGameState( )
		If( ( CGSO != CGSN && CGSO != 12 ) || CGSO == "" ) {
			bPtrAoB := GD.processPatternScan( , , basePtrAoBArrayDec* )
			bptr := FHex( GD.read( GD.read( bPtrAoB + basePtrAoBOffset ) ) )
			bPtrAdd1 := FHex( GD.read( bPtrAoB + basePtrAoBOffset ) - mBase )
			If( bPtrAdd1 != BasePointer ) {
				IniWrite, % FHex( bPtrAdd1 ), config.ini, Config, BasePointer
				BasePointer := bPtrAdd1
				CornerNotIfy( 2, 1, "[SIGNATURE SCAN]", "Successfully found a new Base Pointer (" . FHex( BasePointer ) . " )...", "vn hn" )
			}
			CGSN := GetGameState( )
		}
		Return bptr
	}
}

GetCameraAngle(xy)
{
	Global GD, _oCA_Horizontal, _oCA_Vertical
	
	If( xy == "x" )
		Return round( GD.read( GetGameEngineBase( ) + _oCA_Horizontal, "Float" ), 4 )
	Else If( xy == "y" )
		Return round( GD.read( GetGameEngineBase( ) + _oCA_Vertical, "Float" ), 4 )
}

ChangeCameraAngle(updown = "up", Value = 0.1)
{
	Global GD, _oCA_Horizontal

	If( updown == "up" )
		Return GD.write( GetGameEngineBase( ) + _oCA_Horizontal, GetCameraAngle( "x" ) + Value, "Float" )
	Else If( updown == "down" )
		Return GD.write( GetGameEngineBase( ) + _oCA_Horizontal, GetCameraAngle( "x" ) - Value, "Float" )
	Else If( updown == "set" )
		Return GD.write( GetGameEngineBase( ) + _oCA_Horizontal, Value, "Float" )
}

full file:
memread.zip

from classmemory.

WAZAAAAA0 avatar WAZAAAAA0 commented on August 20, 2024

Trivial example to use with Cave Story: first open the game, start a new game, go underwater in the very first map, now run the script for infinite air.

#Include classMemory.ahk
TargetProcess := new _ClassMemory("ahk_exe Doukutsu.exe", "", hProcessCopy)

loop
{
	TargetProcess.write(TargetProcess.BaseAddress + 0x0009E6DC, 800, "UShort")
	Sleep,500
}
return

from classmemory.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.