iljs Posted September 11, 2012 Share Posted September 11, 2012 Hi, I am building a windows form application using c#.NET and would like to use AutoITX3.dll to run/perform simple window scripts. I have properly referenced the AutoItX3Lib and following is my code. I tab through the program to make window "Title" active and yet, the program wouldn't continue with the script and never prints the "ITS ACTIVE" line. It seems to be stuck at WinWaitActive and I am unsure why. Any feedback would be appreciated. Thank you. autoit = new AutoItX3Lib.AutoItX3Class(); autoit.AutoItSetOption("WinTitleMatchMode", 2); autoit.WinActivate("Title"); autoit.WinWaitActive(Title); System.Console.WriteLine("ITS ACTIVE"); Link to comment Share on other sites More sharing options...
JohnOne Posted September 12, 2012 Share Posted September 12, 2012 Title needs to be in quotes. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
iljs Posted September 12, 2012 Author Share Posted September 12, 2012 Oops, my bad. It already is within quotes It still doesn't work. 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