ruikangzhu1990 Posted September 30, 2017 Share Posted September 30, 2017 Is it possible to manage an existing autoit compiled program using c#/vb.net by calling the program's functions? example, program A was compiled in autoit and I want to include program A into another program B that will be coded in c#/vb.net and use program B to manage program A such as control whether or not program A activates or when it closes. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 1, 2017 Moderators Share Posted October 1, 2017 You can certainly use C# to launch a compiled AutoIt script with parameters. Something like this: ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @"<Path to executable>"; startInfo.Arguments = @"<param 1> <param 2>"; Process.Start(startInfo); Take a look at the Command Line Parameters section in the help file for how to write the AutoIt script. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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