RCLens

Get from ControlID the items into combobox

3 posts in this topic

#1 ·  Posted (edited)

Hello,

 

I'd like to know how could I get to know the items available in the combobox from a contolID? I used that :

$get = ControlCommand('[CLASS:WindowsForms10.Window.8.app.0.194e1a4_r12_ad1]', '', '[CLASS: WindowsForms10.Window.b.app.0.194e1a4_r12_ad1; INSTANCE: 3]', 'GetCurrentSelection', '')
            MsgBox(0,'', $get)

But I get '0' for $get.

Attached what I'd like to get.

My summary:

Position:    697, 235
Size:    526, 569
Style:    0x16CA0000
ExStyle:    0x00050100
Handle:    0x0000000000340666

>>>> Control <<<<
Class:    WindowsForms10.Window.b.app.0.194e1a4_r12_ad1
Instance:    3
ClassnameNN:    WindowsForms10.Window.b.app.0.194e1a4_r12_ad13
Name:    cmbDatabases
Advanced (Class):    [NAME:cmbDatabases]
ID:    3867516
Text:    
Position:    215, 145
Size:    260, 20
ControlClick Coords:    62, 13
Style:    0x56010000
ExStyle:    0x00010000
Handle:    0x00000000003B037C

>>>> Mouse <<<<
Position:    977, 419
Cursor ID:    0
Color:    0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
bv_dev_companyadmin
b2GalleryControl1
bv_dev_configuration@win-fo6plok45ag\demo
refreshButton1
User
Password
admin
Database


>>>> Hidden Text <<<<
Company

 

Thanks a lot :)

 

Capture.PNG

Edited by RCLens

Share this post


Link to post
Share on other sites



#2 ·  Posted

Hi.

You coded '8' but tool info says 'b': WindowsForms10.Window.b.app.0.194e1a4_r12_ad1

Is that the problem? Conrad 


SciTE = 3.6.2.0/full   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE   H:\...\AutoIt3   H:\...\AutoIt3\Include   H: = Network Drive

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

#3 ·  Posted

No unfortunately, I tried these again:


 

$get = ControlCommand('[CLASS:WindowsForms10.Window.b.app.0.194e1a4_r12_ad1]', '', '[CLASS: WindowsForms10.Window.b.app.0.194e1a4_r12_ad1; INSTANCE: 3]', 'GetCurrentSelection', '')
            MsgBox(0,'', $get)

            $get = ControlCommand('[CLASS:WindowsForms10.Window.b.app.0.194e1a4_r12_ad1]', '', '[CLASSNN: WindowsForms10.Window.b.app.0.194e1a4_r12_ad13; INSTANCE: 3]', 'GetCurrentSelection', '')
            MsgBox(0,'', $get)

 

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