Jump to content
Sign in to follow this  
Basanoviat

Reading Memory Array location

Recommended Posts

Basanoviat

So I will post my code a little later(at work now), but I am reading a memory value using a function similar to NomadMemory. The memory location is actually an array of Bytes. I am able to retrieve the first value in the array but not any of the others. Does anyone have an idea how to reference the memory values inside the memory array to pull out say the 2nd or 3rd member of the array?

Thanks

Share this post


Link to post
Share on other sites
Basanoviat

So if the address was 00fb89ac and it had 2 offsets 0x18 and 0x3c, I would add a 3rd offset of 0x1? Or add 0x1 to the end of the last address location? Or I think that is the same thing no?

Share this post


Link to post
Share on other sites
Basanoviat

Dude you rock. That worked perfectly.  Let me explain the solution

Static Address:  00fb89ac

Offsets [0x0,0x18,0x3c]

.

When i read this memory location, i would get an array of bytes [134,23,13,61,00,00,98]

But i really only needed array position 1 (number 23 in the list). 

I changed my last offset from 0x3c to 0x3d so my offsets looked like this:  [0x0,0x18,0x3d] and this gave me the second value in the array.  

Thank you very much for the quick response.  Gotta love how things make you scratch your head for 5 hours and then when you ask for help it is solved in 2 minutes.  you responded in 2 minutes.  god thats awesome.  Thanks again.

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Out of curiosity: Can you please tell us, why you need to read memory locations?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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  

×