JesuZ Posted May 11, 2009 Posted May 11, 2009 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?
Developers Jos Posted May 11, 2009 Developers Posted May 11, 2009 (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 May 11, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
martin Posted May 11, 2009 Posted May 11, 2009 (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 May 11, 2009 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.
colafrysen Posted May 11, 2009 Posted May 11, 2009 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]
TurionAltec Posted May 12, 2009 Posted May 12, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now