Jump to content

share variable between multi-process


mary
 Share

Recommended Posts

Hi !

is it possible to share a global variable with many process without using registry, ini or an envirement variable?

maybe the fast solution is to allocate a memory space for the shared variable and give its pointer as a commandLine for each process... but i don't know how to do this with autoit :)

thinks for any help or any other fast solution.

Edited by mary
Link to comment
Share on other sites

Search for memory read functions (in themes about DRMs i think). If you dont find it i search my hdd and upload it tommorow because i dont remember the link.

I do so but it seems that there is no possibility to send a variable pointer as a commandline argument. anyway thinks for your help

Link to comment
Share on other sites

I found solution !

$var = ControlGetText("Untitled - Notepad", "", "Edit1")

its read the control form other window! Just create a control with the variable and make it hidden :) bad idea? What you think?

EDIT:

Sory for double post ;) ;)

Edited by Uriziel01
Link to comment
Share on other sites

I found solution !

$var = ControlGetText("Untitled - Notepad", "", "Edit1")

its read the control form other window! Just create a control with the variable and make it hidden smile.gif bad idea? What you think?

EDIT:

Sory for double post sad.gif sad.gif

it is an idea but not fast or better than registry solution

Why not use envirement variable? I don't understand. That seems to be exactly what you want.

OR

Why not just read the memory (in ram) like a trainer does with games.

A environment variable set in this way will only be accessible to programs that AutoIt spawns (Run, RunWait). Once AutoIt closes, the variables will cease to exist.

read memory ? yes but you can't set a variable in ram without a given host process

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...