Sign in to follow this  
Followers 0
goldenix

[Solved]_controlsettext

3 posts in this topic

#1 ·  Posted (edited)

Hire is the problem I have this Combobox in nLite - Windows Installation Customizer: http://www.imgserve.net/images/zjj4ewrw255k59r7u91g.jpg

I 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 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]

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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]

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