Jump to content
Sign in to follow this  
Negative1

Getting a variables from two or more autoit scripts

Recommended Posts

Negative1

Hi guys,

So what I want to do is run multiple autoit scripts compiled as .exes and have them send variables to each other.

eg. script 1 sends the value of $x to script 2

OR

script 2 looks at script 1's memory and gets the value of $x for itself.

Can anyone point me to a function or help me get started?

Thanks

-1


What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites
Melba23

Negative1,

Look at ChrisL's script here. I have used it with success.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Qousio

Hi guys,

So what I want to do is run multiple autoit scripts compiled as .exes and have them send variables to each other.

eg. script 1 sends the value of $x to script 2

OR

script 2 looks at script 1's memory and gets the value of $x for itself.

Can anyone point me to a function or help me get started?

Thanks

-1

You can do it four ways:

#1 Do it all in one script

#2 Make one script write to an .ini file or filewritetoarray

#3 Do it all in one script

#4 Do what Melba23 tells you ^_^

Edited by Qousio

Share this post


Link to post
Share on other sites
KaFu

Or

- main calls child via run() + command line parameter

- child reads parameter via $CmdLine[0], does calculation and writes to console

- main reads result via stdout

Example from help-file:

$foo = Run(@ComSpec & " /c dir foo.bar", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)

Share this post


Link to post
Share on other sites
Negative1

Negative1,

Look at ChrisL's script here. I have used it with success.

M23

Thanks M23 this looks like it will work for me ^_^

You can do it four ways:

#1 Do it all in one script

#2 Make one script write to an .ini file or filewritetoarray

#3 Do it all in one script

#4 Do what Melba23 tells you biggrin.gif

I kind of like the .ini file idea i'll keep that as plan B ;)

I need to use multiple scripts as the idea is to use up all processors / cores during some heavy maths!


What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world.

Share this post


Link to post
Share on other sites
Yashied

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  

×