SychoAN Posted April 24, 2022 Share Posted April 24, 2022 Hi, I have a script that waiting window to open and clicking on install button and it's working... but I wanna make it with C# I compiled the script but had a lot of issues So I added .dll to my C# app and this is my code : Process process = new Process(); process.StartInfo.FileName = ProgramFiles1 + "\\EasyTheme\\monterey_rainmeter_0_7.rmskin"; process.StartInfo.UseShellExecute = true; process.Start(); AutoItX3 auto = new AutoItX3(); const string widowTitle = "Rainmeter Skin Installer"; auto.WinWait(widowTitle, ""); auto.ControlClick(widowTitle, "", "[Class:Button;Instance:3]"); but it gives this error Can any one help ? Link to comment Share on other sites More sharing options...
junkew Posted April 24, 2022 Share Posted April 24, 2022 (edited) I would start by proofing the basics work on your machine. Most likely you have to put the assembly at a place it can be found. Edited April 24, 2022 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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