RCLens Posted August 21, 2017 Share Posted August 21, 2017 (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 Edited August 21, 2017 by RCLens Link to comment Share on other sites More sharing options...
Simpel Posted August 21, 2017 Share Posted August 21, 2017 Hi. You coded '8' but tool info says 'b': WindowsForms10.Window.b.app.0.194e1a4_r12_ad1 Is that the problem? Conrad SciTE4AutoIt = 3.7.3.0 AutoIt = 3.3.14.2 AutoItX64 = 0 OS = Win_10 Build = 19044 OSArch = X64 Language = 0407/german H:\...\AutoIt3\SciTE H:\...\AutoIt3 H:\...\AutoIt3\Include (H:\ = Network Drive) Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. Link to comment Share on other sites More sharing options...
RCLens Posted August 22, 2017 Author Share Posted August 22, 2017 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) 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