Paulliev Posted February 24, 2021 Share Posted February 24, 2021 Hello! I have made an au3 script and I want it to trigger in C#. In C# I use AutoITX to run programs. Look at the following code what I have done. AutoItX.Run(@"C:\TicketScripts\createTicket.au3", ""); When I run my C# code it won't trigger my script, how can I fix this? Thanks! Link to comment Share on other sites More sharing options...
Developers Jos Posted February 24, 2021 Developers Share Posted February 24, 2021 You can't run a script file line that as Run requires an executable! 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...
Paulliev Posted March 3, 2021 Author Share Posted March 3, 2021 I fixed it by using the following code: AutoItX.Run(@"C:\Program Files (x86)\AutoIt3\AutoIt3.exe /AutoIt3ExecuteScript setCompany.au3",@"C:\TicketScripts\", 1); Link to comment Share on other sites More sharing options...
Danp2 Posted March 3, 2021 Share Posted March 3, 2021 Are you using AutoItX for anything else in this project? If not, then you could execute the script directly from C# and skip using AutoItX.Run. 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