Get value from memory address.

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
shapowsky
Newbie
Posts: 11
Joined: Sun Mar 06, 2016 9:29 am

Get value from memory address.

Post by shapowsky » Sun Mar 06, 2016 9:31 am

The subject says what I want.

It's possible to get a value from a pre-defined memory adress?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Get value from memory address.

Post by Marcus Tettmar » Mon Mar 07, 2016 11:34 am

Hi,

Can you elaborate on what you are wanting to achieve?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

shapowsky
Newbie
Posts: 11
Joined: Sun Mar 06, 2016 9:29 am

Re: Get value from memory address.

Post by shapowsky » Mon Mar 07, 2016 12:17 pm

Oh, hi!
So, I need to copy/read a string value from a pre-determinated address.

It's a roulette with 10 values, the final user can't see what is the value on roulette, but I can see it analizing the memory.
With this, I will make some conditions for the macro.

Without get the value directly from this address, I can't do anything.


An example:

let>Value1=%address_with_the_value%

if>Value1="hohoho"
(list of things to do)
else
(list of other things to do)
endif

The main problem is that I can't get this value in other ways. Because naturally they don't want anyone see the value.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Get value from memory address.

Post by Marcus Tettmar » Mon Mar 07, 2016 3:06 pm

Well, I'm still not clear, but I'm guessing you want to somehow peek at the memory of an external process. Either way there's no native functions to do this with Macro Scheduler. It *may* be possible using Win32 API functions and LibFunc but without knowing more it's hard to say. It's not something Macro Scheduler is designed to do though. Isn't the information on the screen?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

shapowsky
Newbie
Posts: 11
Joined: Sun Mar 06, 2016 9:29 am

Re: Get value from memory address.

Post by shapowsky » Mon Mar 07, 2016 3:47 pm

Exactly, you got the point.
There is no information on screen, because it's a roulette. The only information is a prompt asking me if I'll continue or no.
But the value is already in the memory.

It's like a tv show that you need to choose one door to enter, you don't know what are inside in each one, but the organizers of the show knows.
If you could read their minds, you'll choose the best door, right?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Get value from memory address.

Post by Marcus Tettmar » Tue Mar 08, 2016 8:39 am

Ah, you mean like cheating? ;-)
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

shapowsky
Newbie
Posts: 11
Joined: Sun Mar 06, 2016 9:29 am

Re: Get value from memory address.

Post by shapowsky » Tue Mar 08, 2016 9:03 am

In this case, no.
This ins't a luck game or something like. I need the automation to leave the pc while macro is running.
I used this example because this is the only thing that came in my mind.

The case is that I don't know what will appear in the screen (and there is no other way to know), so I can't set macro scheduler to take the actions.

Yep, this macro is for a game, but not to cheat. I can't say the game name because the devs will block my automation and the use of macro scheduler if they found this topic.
I don't know if you guys give support for games, if no, I'll understand.

I can pm you with my code and explain all the process if you want, but I don't know if you have time to this.

shapowsky
Newbie
Posts: 11
Joined: Sun Mar 06, 2016 9:29 am

Re: Get value from memory address.

Post by shapowsky » Fri Mar 11, 2016 10:56 am

Anyone?
I took a look in these Windows API and all.
I have no idea to how to proceed with this.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts