| View previous topic :: View next topic |
| Author |
Message |
Veary Guest
|
Posted: Sun Mar 01, 2009 8:19 pm Post subject: Passing a variable to another script |
|
|
Hello, I would like to know if there is a way to set a variable in another script?
Example: I have a main script running, and want to run another script to do a task for the main script, I run that script from the main script, then want to set a variable to it.
Coding example for "Main Script":
| Code: |
Run,DRIVE:\DIR\Script.ahk
ThatScript.Variable = Value
|
Is there any way to do something like this in AutoHotKey?
I have already searched this board for help on this, and it returns too many results that are not what I am looking for.
I know of ways that I could do this, but it would be slow/possibly inaccurate. (Like writing to a temporary text file and having the script ran by the main script read it after the main script writes it to the text file before running the secondary script.) |
|
| Back to top |
|
 |
Jex
Joined: 01 Aug 2008 Posts: 101
|
|
| Back to top |
|
 |
SpiderGames
Joined: 09 Jun 2008 Posts: 936 Location: Canada
|
Posted: Mon Mar 02, 2009 1:39 pm Post subject: |
|
|
if thats too confusing try this.
Script 1
Script 2
Other simple ways can be used my apending files. using teh above method and then having the second script read it. _________________
I know i have 6 legs. It's cuz I'm special. |
|
| Back to top |
|
 |
|