VAG Posted April 10, 2012 Share Posted April 10, 2012 I'm trying to create an exe helper to do remote communication using Kip's TCP.AU3. As my outdated 3rd party software can only call external program thru command line, I am thinking of compiling the script helper into exe which support parameters. I have read about the help topic on "Command Line Parameters", I understand that parameters can be passed into the script when running exe. But then the helper I'm creating will need to support different TCP actions like "Connect", "Send", "Receive". So I will need to call this helper several times during the remote session. The problem I am facing now is that TCP.AU3 will be creating a handle after opening a valid TCP session, so all subsequence actions will be based on this handle. Thus, I cannot just end an exe helper after I call for connect. I would like to ask is there method to allow the exe to run at the background, so every time calling the exe with parameters will just execute part of the function inside, while maintaining all the contants. I have tried to search thru the forum for this, but not really sure what type of keyword does this belong to. Thanks Link to comment Share on other sites More sharing options...
KaFu Posted April 10, 2012 Share Posted April 10, 2012 of how to pass command line parameters to a running script. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
storme Posted April 10, 2012 Share Posted April 10, 2012 Hi VAG I'm interested in the outcome of the project. My approach would be to get the script to check if it is already running on each startup. If it is then use some interscript communications method to pass the new message to the running script. The initial running script would continue to run untill shut down either by command or timer, which ever works best for your script. Hope that helps John Morrison Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
storme Posted April 10, 2012 Share Posted April 10, 2012 of how to pass command line parameters to a running script.Now I know how the "professional thinkers" felt about "Deep Thought". Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
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