Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Combobox issues (can't select an item).


  • Please log in to reply
1 reply to this topic
belamoor
  • Members
  • 1 posts
  • Last active: Apr 04 2015 10:37 AM
  • Joined: 11 Feb 2015

So i am just trying to choose an item from a combobox but it just doesn't work unless emulating actual key presses. Here is 2 images of relevant stuff , first is how the combobox looks like and second is window spy info http://imgur.com/a/52bDy. Using another spy called Winspector i was able to figure out that the drop down panel is actually called TPopupDataList, but whatever i do it doesn't seem to work.   

This is the stuff that i tried:

;Vers1
ControlClick, TDBLookupComboBox1, ahk_class TEdProv
Control, Choose, 1, TPopupDataList, ahk_class TEdProv
;Vers2
Control, Choose, 1, TDBLookupComboBox1, ahk_class TEdProv
;Vers3
Control, ChooseString, 0, TDBLookupComboBox1, ahk_class TEdProv
;Vers4
ControlClick, TDBLookupComboBox1, ahk_class TEdProv
Control, ChooseString, 0, TPopupDataList, ahk_class TEdProv

Also here is another topic on similar issue http://www.autohotke...combobox-usage/

Help, please ?  :/



Oldman
  • Members
  • 2475 posts
  • Last active: Feb 18 2015 04:57 PM
  • Joined: 01 Dec 2013

Could you try like this ?

Control, ShowDropDown,, TDBLookupComboBox1, ahk_class TEdProv ; Opens dropdown list
Control, Choose, 1, TDBLookupComboBox1,  ahk_class TEdProv    ; Selects option 1
ControlSend, TDBLookupComboBox1, {Enter}, ahk_class TEdProv   ; Enter
Control, HideDropDown,, TDBLookupComboBox1, ahk_class TEdProv ; Closes dropdown list

Si ton labeur est dur et que tes résultats sont minces, souviens toi du grand chêne qui avant n'était qu'un gland....comme toi ! (anonyme) ;)

L'art de lire, c'est l'art de penser avec un peu d'aide. (É. Faguet)

Windows 3.1. Collector's Edition.     (www.avaaz.org)