Sign in to follow this  
Followers 0
shaktiku1

Single script to work with different OS languages

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Thank you John .It worked.

Share this post


Link to post
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
Sign in to follow this  
Followers 0