cag8f Posted January 5, 2011 Share Posted January 5, 2011 I am playing with GuiComboBoxEx.au3 for the first time. I am trying to get _GUICtrlComboBoxEx_ShowDropDown() to show the menu of a combo box. The combo box may or may not be Windows standard. The entire script is: #include <GuiComboBoxEx.au3> _GUICtrlComboBoxEx_ShowDropDown($handle, True) Exit For $handle I specified the "Handle" of the combobox, as returned by the AutoIt Info tool. However nothing happens when I run the script. Am I correct that this should show the menu of the combobox? Please let me know if I'm doing anything wrong as far as syntax or operation. OS is Win XP Pro. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 5, 2011 Moderators Share Posted January 5, 2011 cag8f,A rather negative response I am afraid. The UDF commands often only work on controls created by the UDF, so I would hold out little hope of any of the _GUICtrlComboBoxEx_* commands working on anything other than a combo created with _GUICtrlComboBoxEx_Create - as you have found. If you are trying to open a combo in a third party app, I would try _GUICtrlComboBox_ShowDropDown - but if the combo is not created using the normal Windows API then there is a good chance it will not work either. However, you might be lucky so give it a go. Finally, getting the handle via the Info tool is not the best way to go as it will change each time you run the app.I did warn you! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
cag8f Posted January 5, 2011 Author Share Posted January 5, 2011 Very informative. The fact that _GUICtrlComboBoxEx_* commands only work on controls created by the UDF explains everything. >> Finally, getting the handle via the Info tool is not the best way to go as it will change each time you run the app. This I actually knew, thanks. >> I would try _GUICtrlComboBox_ShowDropDown That does not work, as expected. Now a follow up question: In light of all this, do I have any other options as far as controlling this non-standard command? 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