mary Posted August 21, 2007 Share Posted August 21, 2007 (edited) 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 August 21, 2007 by mary Link to comment Share on other sites More sharing options...
Mast3rpyr0 Posted August 21, 2007 Share Posted August 21, 2007 you can make multiple windows in 1 script and use it between all but im not sure if you can share with oher processes. My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Uriziel01 Posted August 21, 2007 Share Posted August 21, 2007 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. Link to comment Share on other sites More sharing options...
mary Posted August 21, 2007 Author Share Posted August 21, 2007 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 More sharing options...
Uriziel01 Posted August 21, 2007 Share Posted August 21, 2007 (edited) Meabye noob thinking but i think you may create a hidden gui with the variable in title Or hange title of actual window. what you think about that ? EDIT: sory for my bad english. Edited August 21, 2007 by Uriziel01 Link to comment Share on other sites More sharing options...
Uriziel01 Posted August 21, 2007 Share Posted August 21, 2007 (edited) 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 August 21, 2007 by Uriziel01 Link to comment Share on other sites More sharing options...
Zedna Posted August 21, 2007 Share Posted August 21, 2007 Interprocess comunication can be done several ways.- WM_COPYDATA message --> there are AU3 example on this forum- memory-mapped files- ...Start seach for example from here Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
DW1 Posted August 21, 2007 Share Posted August 21, 2007 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. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
mary Posted August 21, 2007 Author Share Posted August 21, 2007 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.gifit is an idea but not fast or better than registry solutionWhy not use envirement variable? I don't understand. That seems to be exactly what you want.ORWhy 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now