Sign in to follow this  
Followers 0
matumbo

Dim/Global/Local

4 posts in this topic

I have read the help files but I still can't find information about this.

If I create a script and creates a variable for an example,

$BankAmount = 1000

Can I somehow make it to work in another script that is running at the same time?

Thx in advance.

Share this post


Link to post
Share on other sites

I have read the help files but I still can't find information about this.

If I create a script and creates a variable for an example,

$BankAmount = 1000

Can I somehow make it to work in another script that is running at the same time?

Thx in advance.

The negative influence from the moon will shift today, lightening your mood nicely. The only problem is that you might be inclined to take on too much, which could turn out to be counter-productive! Pace yourself and you will have a better and faster rate of success!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Hi,

wirte it down to a file and read it with the other script, or send the info via tcp.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

I have read the help files but I still can't find information about this.

If I create a script and creates a variable for an example,

$BankAmount = 1000

Can I somehow make it to work in another script that is running at the same time?

Thx in advance.

You could send it by writing to a (possibly hidden) control in the other GUI, or since it is numeric data, via WM_COPYDATA. You could also put it to a registry key. Or use an intermediate file or TCP connection as Xenobiologist pointed out already.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  
Followers 0