Jump to content

Autoit API question for c#/vb.net


ruikangzhu1990
 Share

Recommended Posts

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

  • Moderators

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...