monochrome90 Posted October 25, 2007 Share Posted October 25, 2007 I am trying to automate a Latvian program. Im runing setup.exe and then appears a combo box where I can chose between two languages - Latvian and English. What I have to do to make script choose the Latvian Language? Link to comment Share on other sites More sharing options...
Armand Posted October 25, 2007 Share Posted October 25, 2007 (edited) read about controlsend() and controlclick() -> commands mate. or even about send() command to automate a keyboard press to choose for ya. the lamest but the easiest way is to: send({DOWN}{ENTER})oÝ÷ Úíç(®·¶Ø¦zØZ·§v)¢.¤ô²¢çëjëh×6if WinExists("window's title") then send({DOWN}{ENTER}) to get the state of the window you want and then send the command. Edited October 25, 2007 by Armand [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?! Link to comment Share on other sites More sharing options...
monochrome90 Posted October 25, 2007 Author Share Posted October 25, 2007 Second variant was very helpful! Thank ya very much! Link to comment Share on other sites More sharing options...
monochrome90 Posted October 25, 2007 Author Share Posted October 25, 2007 (edited) One more question! My current script is Run("Setup.exe") If WinWaitActive ("title") Then Send ("{DOWN}") But what should i do if title is variable (depending on regional language)? there could be title1 and title 2 (for example).... Edited October 25, 2007 by monochrome90 Link to comment Share on other sites More sharing options...
Armand Posted October 25, 2007 Share Posted October 25, 2007 christ that's realy from a scratch!!! - the "title" thing should be the title of that window you wish to control... and not title... - about the variants: $var1 = "Choose language: English" $var2 = "Choose language: Hebrew" $var3 = "Choose another language" ;these are variable for the title of the window !!! and not for the combo control... if WinExists($var1) then send({DOWN}{ENTER}) ;if the title changes upon choosing another language in the combo you can send in advance a multiple number of presses. eg: 3 down clicks then enter: if WinExists($var2) then send({DOWN}{DOWN}{DOWN}{ENTER}) i think this is more then enough -> read AU3 help file for alot of explanations and examples!!! AU3 is easy... probably too ez! [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?! Link to comment Share on other sites More sharing options...
Nevin Posted October 25, 2007 Share Posted October 25, 2007 lol, wtf? You already asked this an hour ago, and said you understood, but didn't.http://www.autoitscript.com/forum/index.php?showtopic=55847 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