Jump to content

Single script to work with different OS languages


Go to solution Solved by JohnOne,

Recommended Posts

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

  • Solution

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

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