Jump to content

C# button click with autoit


Recommended Posts

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
image.png.9ff916be436f0d018c4fc09a8eb85b00.png
Can any one help ?

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...