I want to select the text from a combo box which has an ID "~1". I tried using ctrlText() command, but its selecting the lable of the window for which the ID is also 1. Please guide me how to get the shown current text from a combo box
Thanks for the quick response. what my code shows something like this
TableSelect "~1", 7, 2, 'Left DoubleClick'
var hCtrl = comboFind("~1")
var ret = ctrlText(hCtrl)
In my application, the combobox shown item is different compared to the returned ctrlText from above code. The text I am getting with the above code is "SQL Default" which is the name of the window and the text I have in comboBox is "3-Type"
May be I may mess up with the control ID. Please guide me how to get the same text from the comboBox which is "3-Type".