goldenix Posted March 18, 2009 Share Posted March 18, 2009 (edited) Hire is the problem I have this Combobox in nLite - Windows Installation Customizer: http://www.imgserve.net/images/zjj4ewrw255k59r7u91g.jpgI tried using Controlsend & controlsettext & they dont work, nothing happens. ControlGetText does not work neather. Is it not possible to set text to combobox?$win = 'nLite' $class_Combobox = 'WindowsForms10.COMBOBOX.app.0.33c0d9d' WinActivate($win) WinWaitActive($win) ControlSetText($win, "", $class_Combobox & "19", "32 bit (True Color)" ) ; Color depth $e = ControlGetText($win, "", $class_Combobox & "19" ) ; localisation ConsoleWrite($e & @CRLF) Edited March 18, 2009 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Zedna Posted March 18, 2009 Share Posted March 18, 2009 I have made workaround for nonstandard combobox this way: ;~ $start = TimerInit() ;~ While 1 For $i = 1 To 2 $text_v_okne = WinGetText($titulek,$text) If StringInStr($text_v_okne, $profil) > 0 Then ControlClick($titulek,$text,'Button2') ; OK Exit EndIf ControlSend($titulek,$text,'REComboBox20W1','{Down}') ;~ Send('{Down}') Next Just use ControlSend({Down}) in loop and test if your desired text appears in window's visible/hidden text by WinGetText() In my case there were only two values in combo so I made only For loop with 2 cycles. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
goldenix Posted March 18, 2009 Author Share Posted March 18, 2009 I have made workaround for nonstandard combobox this way: Thanx this works: $win = 'nLite' $class_Edit = 'WindowsForms10.EDIT.app.0.33c0d9d' ControlClick($win, "", $class_Combobox & "14", "" ) ; Color depth Send('{Down}') My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] 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