Search found 194 matches

by RHCP
24 Oct 2019, 05:06
Forum: Ask For Help
Topic: Classmemory readbytes Topic is solved
Replies: 2
Views: 223

Re: Classmemory readbytes Topic is solved

You're reading the memory as a string. The 00 byte in a string acts as a null terminator, i.e. it ends the string. What are you trying to do with the string of hex bytes after you read it? https://i.imgur.com/5IDwX2W.png calc.readRaw(0x283E85E1196, myBuffer, 10) msgbox % bufferToHex(myBuffer, 10) bu...
by RHCP
20 Oct 2019, 10:28
Forum: Ask For Help
Topic: Kalamity classMemory Help Topic is solved
Replies: 4
Views: 246

Re: Kalamity classMemory Help Topic is solved

You need to use the 64 bit version of AHK, as the game itself is 64 bit.
by RHCP
20 Oct 2019, 02:58
Forum: Ask For Help
Topic: Kalamity classMemory Help Topic is solved
Replies: 4
Views: 246

Re: Kalamity classMemory Help Topic is solved

Are you using the 64 bit version of AHK?
by RHCP
15 Oct 2019, 06:48
Forum: Gaming
Topic: Memory script help Topic is solved
Replies: 2
Views: 312

Re: Memory script help Topic is solved

Something like this: #SingleInstance Force #Include <classMemory> if !A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" exitapp } if (_ClassMemory.__Class != "_ClassMemory") { msgbox class memory not correctly installed. ExitApp } _ClassMemory.setSeDebugPrivilege() ; Required - must be first thing called ...
by RHCP
22 Sep 2019, 06:31
Forum: Ask For Help
Topic: Need Help with classMemory.ahk (RHCP!) with modulePatternScan
Replies: 3
Views: 357

Re: Need Help with classMemory.ahk (RHCP!) with modulePatternScan

#Include <classMemory> _classmemory.setSeDebugPrivilege() if !A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } if (_ClassMemory.__Class != "_ClassMemory") { msgbox class memory not correctly installed. ExitApp } ; I don't know if you removed it on purpose in your posted code snippet, ; but you...
by RHCP
29 Jun 2019, 14:14
Forum: Ask For Help
Topic: RHCP Classmemory
Replies: 6
Views: 871

Re: RHCP Classmemory

What is this supposed to do, besides change the English text to look like Japanese characters instead? UFT-8 I understand as English, and reads perfectly for what I'm trying to accomplish. It still refuses to show text beyond the first encountered null. The first picture you posted shows Unicode (U...
by RHCP
28 Jun 2019, 00:18
Forum: Ask For Help
Topic: RHCP Classmemory
Replies: 6
Views: 871

Re: RHCP Classmemory

The first string is unicode.
Try:

Code: Select all

Exile := poe.readString(0x7FFB69C3AE78,, encoding := "UTF-16")
by RHCP
27 Mar 2019, 06:43
Forum: Ask For Help
Topic: Memory address value to GUI for flightsim gauge
Replies: 12
Views: 1064

Re: Memory address value to GUI for flightsim gauge

You need to find the address of "sceneman.dll", not the process for that pointer i.e. msgbox % "base address: " mem.BaseAddress . "`nModleaddress: " mem.getModuleBaseAddress("sceneman.dll") gInd := mem.read(mem.getModuleBaseAddress("sceneman.dll") + 0x0004F318, "Double", 0x8, 0x630, 0x7D8, 0x18, 0x6...
by RHCP
12 Mar 2019, 22:02
Forum: Ask For Help
Topic: Memory address value to GUI for flightsim gauge
Replies: 12
Views: 1064

Re: Memory address value to GUI for flightsim gauge

It's because you're trying to read a double (8 bytes) and that function reads 4 bytes from memory.

Try something like:
address := mem.modulePatternScan(, aPattern*)
msgbox % value := mem.read(address, "Double")
by RHCP
11 Mar 2019, 15:43
Forum: Ask For Help
Topic: Memory address value to GUI for flightsim gauge
Replies: 12
Views: 1064

Re: Memory address value to GUI for flightsim gauge

Try using " _ClassMemory.setSeDebugPrivilege()" before calling new. E.g #include classMemory.ahk if !A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } if (_ClassMemory.__Class != "_ClassMemory") { msgbox class memory not correctly installed. ExitApp } _ClassMemory.setSeDebugPrivilege() WinGet, P...
by RHCP
30 Jan 2019, 07:55
Forum: Ask For Help
Topic: classMemory writeString problem Topic is solved
Replies: 3
Views: 445

Re: classMemory writeString problem Topic is solved

You may have also forgot to change mem.baseaddress to sim.baseaddress.

Code: Select all

sim.writeString(sim.BaseAddress + 0x004A2870, "SJ_Spit_CanopyClose.wav", "utf-8", 0x48, 0x30, 0x0, 0x20, 0x60)
by RHCP
01 Nov 2018, 08:49
Forum: Ask For Help
Topic: Kalamity Library - WriteBytes Topic is solved
Replies: 3
Views: 603

Re: Kalamity Library - WriteBytes Topic is solved

Add the following method to classMemory, i.e. place the method inside the actual class. writeHexString(address, hexString, aOffsets*) { AOBPattern := this.hexStringToPattern(hexString) if !IsObject(AOBPattern) return AOBPattern sizeBytes := this.getNeedleFromAOBPattern("", buffer, AOBPattern*) retur...
by RHCP
23 Feb 2018, 01:35
Forum: Gaming
Topic: Memory search not working ingame Topic is solved
Replies: 9
Views: 1564

Re: Memory search not working ingame Topic is solved

In response to your PM, for some reason with your 'special' version of warcraft the 'winget, pid,PID, ahk_exe war3.exe' command (which is used internally in the class) fails, but 'winget, pid,PID, Warcraft III' works fine. You need to either use the wintitle 'Warcraft III' or use the 'ahk_pid xxxx'....
by RHCP
14 Feb 2018, 22:21
Forum: Ask For Help
Topic: Read memory and offsets Topic is solved
Replies: 3
Views: 1366

Re: Read memory and offsets Topic is solved

I tried reading and searching each line but i don't understand what is this for. Programs will either have a dynamic (ASLR) base address which changes every time it is run, or they will have a static base address which never changes. In the case of the static base address, this address is set when ...
by RHCP
29 Jan 2018, 21:54
Forum: Gaming
Topic: Memory search not working ingame Topic is solved
Replies: 9
Views: 1564

Re: Memory search not working ingame Topic is solved

When specifying the PID as the ID, if the error message presented is OpenProcess failed. If the target process has admin rights, then the script also needs to be ran as admin. Consult A_LastError for more information. (Instead of 'the program isn't running / not found) Then you could try calling _Cl...
by RHCP
27 Jan 2018, 19:16
Forum: Gaming
Topic: Memory search not working ingame Topic is solved
Replies: 9
Views: 1564

Re: Memory search not working ingame Topic is solved

I actually still have warcraft 3 TFT (fully updated) installed on this computer - win10 64, AHK 32 bit. It works perfectly fine here, so im not sure. When the game is running, is war3.exe listed as the running executable in the task manager? From the info provided it would seem that this function is...
by RHCP
06 Jan 2018, 23:19
Forum: Gaming
Topic: Memory search not working ingame Topic is solved
Replies: 9
Views: 1564

Re: Memory search not working ingame Topic is solved

What game is it? An old version of warcraft 3? Try using UTF-8 encoding. myAOBscan := TargetProcess.stringToPattern(myAOBstringpattern, "UTF-8") Also, ensure you are successfully opening a handle to the program. This will provide an error if it fails. TargetProcess := new _ClassMemory("ahk_exe war3....
by RHCP
17 Sep 2017, 03:02
Forum: Ask For Help
Topic: RHCP Please Help (processPatternScan) Topic is solved
Replies: 6
Views: 2398

Re: RHCP Please Help (processPatternScan) Topic is solved

Hard to say. I've yet to find a game that it hasn't worked with, steam or otherwise. Usually ahk_exe works as an identifier, but there are rare occasions where you need to use some other identifier. What is Mkx.exe ??? You could try launching the script as admin. Every once in a while a game will re...
by RHCP
08 Sep 2017, 03:48
Forum: Gaming
Topic: [Path of Exile] Auto Potion
Replies: 37
Views: 18177

Re: [Path of Exile] Auto Potion

Are you including the class via #include? #Include <classMemory> ; You can use this code to check if you have installed the class correctly. if (_ClassMemory.__Class != "_ClassMemory") { msgbox class memory not correctly installed. Or the (global class) variable "_ClassMemory" has been overwritten E...
by RHCP
08 Sep 2017, 03:23
Forum: Gaming
Topic: [Path of Exile] Auto Potion
Replies: 37
Views: 18177

Re: [Path of Exile] Auto Potion

%A_ScriptDir%\Lib\ ; Local library - requires AHK_L 42+. %A_MyDocuments%\AutoHotkey\Lib\ ; User library. path-to-the-currently-running-AutoHotkey.exe\Lib\ ; Standard library. if a script calls a nonexistent function MyFunc(), the program searches for a file named "MyFunc.ahk" in the user library. I...

Go to advanced search