Sign in to follow this  
Followers 0
jlorenz1

ControlCommand() doesn't select string in combo

4 posts in this topic

Hi,

normalyy I've no problem with ControlCommand(), but in eMule V0.48a I can't select in the combo TYPE "AUDIO" and in the combo METHOD "KAD NETWORK" on the SEARCH page. Have anyone an idea? Thanks Johannes

EnvSet('Searchqueue', 'London|Moskau|Paris')
EnvUpdate()
MsgBox(4096, '', EnvGet('Searchqueue'),2)
$a=StringSplit(EnvGet('Searchqueue'),'|')
;If ProcessExists('emule.exe') = 1 Then
    For $i = 1 to 2 
        While $a[$i]=''
            Sleep(500)
            $a=StringSplit(EnvGet('Searchqueue'),'|')
        WEnd
        _SleepWhileStartIsntAvailable()
        MsgBox(4096,$i,$a[$i],1)
        ControlSetText('eMule v0.', '', 2183, $a[$i] ); Edit6  
        ControlCommand('eMule v0.', '', 2322, "SelectString", 'Audio' );ComboBox1
        ControlCommand('eMule v0.', '', 2175, 'SelectString', 'Global (Server)' );  ComboBox2   
        ControlClick('eMule v0.', '', 2189)
        _SleepWhileStartIsntAvailable()
        ControlSetText('eMule v0.', '', 2183, $a[$i] ); Edit6  
        ControlCommand('eMule v0.', '', 2322, 'SelectString', 'Audio' )
        ControlCommand('eMule v0.', '', 2175, 'SelectString', 'KAD Network' );  ComboBox2   
        ControlClick('eMule v0.', '', 2189)     
    Next
;EndIf

Func _SleepWhileStartIsntAvailable()
    While ControlCommand('eMule v0.', '', 2189, 'IsEnabled', '') = 0 
        Sleep(500)
    WEnd
EndFunc

Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

It probably doesn't work because it's not standard ComboBox.

What's its ClassName?

His are the information from AutoIt v3 Window Info

Class: ComboBox

Instance: 1

ClassnameNN: ComboBox1

ID: 2322

Text:

Position: 11,123

Size: 99,22

...

Style: 056000513

ExStyle: 0x00000000

Handle 0x00010198

Screenshot/

Greetings Johannes

Edited by jlorenz1

Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

RESOLVED

it works like that

ControlCommand('eMule v0.', '', 2322, 'SetCurrentSelection', 2 );ComboBox1
Edited by jlorenz1

Johannes LorenzBensheim, Germanyjlorenz1@web.de[post="12602"]Highlightning AutoIt Syntax in Notepad++ - Just copy in your Profile/application data/notepad++[/post]

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