max123 Posted June 7, 2012 Share Posted June 7, 2012 Hello, I have a problem with the class TButton. Here is the code ShellExecute(fz306.exe) WinWaitActive("Setup-Sprache auswählen", "Wählen Sie die Sprache") ControlClick("Setup-Sprache auswählen", "OK", "TButton1") autoit doesn't click on the Button "OK". Where is the mistake? Greeting Max Link to comment Share on other sites More sharing options...
JScript Posted June 7, 2012 Share Posted June 7, 2012 Try this:ControlClick("Setup-Sprache auswählen", "", "[CLASS:Button; INSTANCE:1]") Regards, João Carlos. http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
max123 Posted June 7, 2012 Author Share Posted June 7, 2012 It doesn't work. Windows Info =========== Class: TButton Instance:1 ClassnameNN: TButton1 Link to comment Share on other sites More sharing options...
JScript Posted June 7, 2012 Share Posted June 7, 2012 Simple:ControlClick("Setup-Sprache auswählen", "", "[CLASS:TButton; INSTANCE:1]") Regards, João Carlos. http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
max123 Posted June 7, 2012 Author Share Posted June 7, 2012 (edited) Thank you for the code, but it doesn't work.Picture: Edited June 7, 2012 by max123 Link to comment Share on other sites More sharing options...
JScript Posted June 7, 2012 Share Posted June 7, 2012 Try this:ControlClick("[CLASS:TSelectLanguageForm]", "", "[CLASS:TButton; INSTANCE:1]") Regards, João Carlos. http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
max123 Posted June 7, 2012 Author Share Posted June 7, 2012 It doesn't work. The code selected the Combobox. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 7, 2012 Moderators Share Posted June 7, 2012 Hi, max123. What is the application you are trying to install? It appears to be an MSI, which means you should be able to install it from command line and choose your language with a switch. You would then be able to skip trying to click on boxes and buttons. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
max123 Posted June 7, 2012 Author Share Posted June 7, 2012 I try to install filzip free Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 7, 2012 Moderators Share Posted June 7, 2012 I would suggest doing something like this: ShellExecuteWait(@ScriptDir & "fz306.exe", "/verysilent") RegWrite("HKCUSoftwareFilzipConfigSettings", "Language-Ini", "REG_SZ", "C:Program FilesFilziplanguagesGerman.ini") JScript 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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