Jump to content

2 autoit scripts "talking"


Recommended Posts

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]

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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
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...