Jump to content
Sign in to follow this  
Skrip

2 autoit scripts "talking"

Recommended Posts

Skrip

2 scripts "talk" sending information to one another.

Like if in script 1 $msg = 1 and in script 2 $msg = 0 then script 1 will send the $msg varible to script 2, then in script 2 $msg = 1

Is it possible to make this? If so, please explain....


[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Share this post


Link to post
Share on other sites
ivan

I did something like this recently using the i/o capability and the console.

take a look at the thread:

http://www.autoitscript.com/forum/index.ph...st&p=200498

This link seems to be broken, I'll try again below:

http://www.autoitscript.com/forum/index.ph...st&p=200498

I also send you a link to the files:

http://www.autoitscript.com/forum/index.ph...ost&id=9499

Hope this helps

IVAN

Edited by ivan

Share this post


Link to post
Share on other sites
ivan

The above only works if the 1st app runs the second.

If this is not the case, then you can always get app1 to write a txt file somewhere like temp directory and app2 to read that file's contents.

This involves reading writing which makes the entire thing inefficient. It's a lot better to rely on the console and i/o.

IVAN

Share this post


Link to post
Share on other sites
Blue_Drache

If I'm reading correctly, use the ConsleWrite() and ConsoleRead() functions?


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites
Richard Robertson

Just use an INI file where both can access it.

Share this post


Link to post
Share on other sites
ending

There are a number of ways you can do this as you've seen from the number of suggestions.

INI

Any kind of data file that you parse out

Registry

Console

TCPSend/Recv -- If you will for sure have a network connection

The best option I think would be ConsoleRead/Write.

Edited by ending

Share this post


Link to post
Share on other sites
Skrip

Thanks Ivan, works great.


[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

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.