shaktiku1 Posted May 9, 2014 Share Posted May 9, 2014 Hi , I am writing script to work on multiple languages (like French, German) Below is my script to open notepad, I used CLASS in Title parameter so that it works across different OS platforms. Run("notepad.exe") WinWaitActive("[CLASS:Notepad]","") WinSetState("[CLASS:Notepad]","",@SW_MAXIMIZE) Send("Hello there") $handle = WinGetHandle("[CLASS:Notepad]") WinClose($handle) ControlClick($handle,"","[CLASS:Button; INSTANCE:1]") // Not Working But i am unable to click on Save button as show in screenhsot '> Can you please help in resolving this issue.. Thanks !! Link to comment Share on other sites More sharing options...
Solution JohnOne Posted May 9, 2014 Solution Share Posted May 9, 2014 Run("notepad.exe") $handle = WinWaitActive("[CLASS:Notepad]","") WinSetState("[CLASS:Notepad]","",@SW_MAXIMIZE) Send("Hello there") WinClose($handle) $handle = WinGetHandle("[ACTIVE]") ControlClick($handle,"","[CLASS:Button; INSTANCE:1]") 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...
shaktiku1 Posted May 9, 2014 Author Share Posted May 9, 2014 Thank you John .It worked. 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