Sign in to follow this  
Followers 0
ruikangzhu1990

Autoit API question for c#/vb.net

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted

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.


√-1 2^3 ∑ π, and it was delicious!

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