QAAutomation Posted September 5, 2019 Share Posted September 5, 2019 Hi, I am trying to call my AutoIt script (.exe) file from my c# code. I have added the AutoItX3Lib in my Visual Studio but I don't know the command to call the exe file in c#. How can I do this? Link to comment Share on other sites More sharing options...
Developers Jos Posted September 5, 2019 Developers Share Posted September 5, 2019 (edited) Where do you see a relation with running a selfcontained compiled AutoIt3 script and the use of "AutoItX3Lib in my Visual Studio"? Jos Edited September 5, 2019 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. Link to comment Share on other sites More sharing options...
QAAutomation Posted September 5, 2019 Author Share Posted September 5, 2019 I didn't understand . Could you explain please? Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted September 5, 2019 Developers Share Posted September 5, 2019 I guess I simply do not understand what you are asking! You have an compiled script ...right? You want to shell that program in c# ...right? So what exactly are you trying to do to accomplish that in C#? 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. Link to comment Share on other sites More sharing options...
QAAutomation Posted September 5, 2019 Author Share Posted September 5, 2019 I got it working . I just had to use the following : AutoItX3Lib.AutoItX3 autoit = new AutoItX3Lib.AutoItX3(); autoit.Run("exe"); Thanks for your help Link to comment Share on other sites More sharing options...
Danp2 Posted September 5, 2019 Share Posted September 5, 2019 You shouldn't need AutoItX3Lib to launch another application (written in Autoit or not). Try googling "Process.Start" for examples of how to launch an executable. Latest Webdriver UDF Release Webdriver Wiki FAQs 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