gtype Posted May 4, 2008 Share Posted May 4, 2008 Well, I have been trying to do something, something that would be much easier if AutoIt had threads. So I came to this helpfull forum searching for answers I'll try to make an example as clear as possible, and as accurate as possible to what I want. Lets suppose I had the main AutoIt script. it would do some irrelevant crap, and then try to open.. erm lets suppose 10 IE's. But I want each IE to be controled in an individual AutoIt script (identical to each IE window). Is it possible to pass variables between scripts? For example, the main script launches 10 IE's, passes relevant vars to each, and when that script is over, it closes the IE window and reports to the main script saying that is over. Is it possible to know if it was window 5 for example that was window 5 that closed? How do we interact between scripts? Is it possible? Thanks in advance Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 4, 2008 Share Posted May 4, 2008 Check out StderrRead/write. If that isn't fast enough you could always do it by just writing to an ini file. And then they read it all. Link to comment Share on other sites More sharing options...
gtype Posted May 4, 2008 Author Share Posted May 4, 2008 u mean talking between scripts by using a temp file? Link to comment Share on other sites More sharing options...
amokoura Posted May 4, 2008 Share Posted May 4, 2008 http://en.wikipedia.org/wiki/Inter-process_communicationSuggestions:- clipboard- temp file- windows messages Link to comment Share on other sites More sharing options...
gtype Posted May 4, 2008 Author Share Posted May 4, 2008 http://en.wikipedia.org/wiki/Inter-process_communicationSuggestions:- clipboard- temp file- windows messagesThanks.. I guess there's no easy way I think I'll try named pipes.. or something like that. Any tips on that? Link to comment Share on other sites More sharing options...
nobbe Posted May 4, 2008 Share Posted May 4, 2008 (edited) hisearch for "NamedPipes.au3"or try http://www.autoitscript.com/forum/index.ph...mp;#entry448765 Edited May 4, 2008 by nobbe Link to comment Share on other sites More sharing options...
gtype Posted May 4, 2008 Author Share Posted May 4, 2008 hisearch for "NamedPipes.au3"or try http://www.autoitscript.com/forum/index.ph...mp;#entry448765Thanks, that thread helped Link to comment Share on other sites More sharing options...
martin Posted May 4, 2008 Share Posted May 4, 2008 There's also an example of running many instances of a script with interscript communication here. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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