Jump to content
Sign in to follow this  
LOULOU

POINTER to a variable

Recommended Posts

LOULOU

$toto = "Bonjour"

How to do for having not the value of $toto but the adress where $toto is stocked in Memory

and in th reverse how to know the value of $toto when we know the adress where $toto is stocked.

Share this post


Link to post
Share on other sites
Wolvereness

This has to do with how autoit works, if you know this then it would be too easy to hack autoit.

There are certain few who would answer this, Jon and other developers.

(I think) What he is asking is how does autoit save data into ram and where.


Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]

Share this post


Link to post
Share on other sites
tylo

$toto = "Bonjour"

How to do for having not the value of $toto but the adress where $toto is stocked in Memory

and in th reverse how to know the value of $toto when we know the adress where $toto is stocked.

<{POST_SNAPBACK}>

You can't. However, you can use "fake" pointers:

$toto = "Bonjour"
$ptr = "toto"

MsgBox(0, "msg1", Eval($ptr)); prints "Bonjour"
Assign($ptr, "Good morning") 
MsgBox(0, "msg1", Eval($ptr)); prints "Good morning"
MsgBox(0, "msg1", $toto); prints "Good morning" as well

blub

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.