Sign in to follow this  
Followers 0
JesuZ

Control script from outside the script...

5 posts in this topic

Hi,

is there way to command my running autoit script to do something, if it's currently running...

WITHOUT using any keypresses, or mousemoves...

Just like inform other program to call script.exe "do this and this", and then it could do it?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

is there way to command my running autoit script to do something, if it's currently running...

WITHOUT using any keypresses, or mousemoves...

Just like inform other program to call script.exe "do this and this", and then it could do it?

What about giving an example clarifying what you mean? Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi,

is there way to command my running autoit script to do something, if it's currently running...

WITHOUT using any keypresses, or mousemoves...

Just like inform other program to call script.exe "do this and this", and then it could do it?

Various ways but using messages is one. Sending a message can be quite simple but it depends what you want to tell your script.

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Hi,

is there way to command my running autoit script to do something, if it's currently running...

WITHOUT using any keypresses, or mousemoves...

Just like inform other program to call script.exe "do this and this", and then it could do it?

dont know if this is what you are looking for but check "Command Line Parameters" in the help file.


[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]

Share this post


Link to post
Share on other sites

You're problem is something like:

Script 1 and script 2 are both running. Script 2 has to pass information to Script 1 (eg: some variables, or just tell it that it's done).

You can create a GUI:

eg: Script 1 has a GUI. When script 2 has information to pass it will write it to script 1's GUI using controlcommand, controlclick, controlsend. Script 1 will then be waiting for on event or poll the GUI for changes.

Alternatively once script 2 is complete it will create a GUI with the values and script 1 will get them from ControlgetText, controlCommand.

The GUI needn't be visible for this to work.

Alternatively you can try something via StdinWrite/ StdoutRead, or via a loopback TCP tunnel, or via a text / ini file in @temp.

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