Zohar Posted May 3, 2009 Share Posted May 3, 2009 (edited) HelloIf you run eMule, and goto the Search tab,you will see there the Type ComboBox, which contains these items:- Any- Archive- Audio ... ...- VideoI am trying to Automatically select an Item in that ComboBox, and this is what I got so far:The first implementation I used, was to send a letter.This works well for some of the items,for example ControlSend "v" to that ComboBox, will Select the "Video" type.However sending a letter does not work for all items,for example, try to select the "Audio" item, and you will not succeed.Seinding "a", will Select "Any".(and then it's possible to use the Down Arrow key to select other items starting with "a").In short,I am trying to use a better approach.when I use this:Local $hComboBox =ControlGetHandle("(U:","","[ClassNN:ComboBox1]") Local $Item_Index =_GUICtrlComboBox_FindString($hComboBox,"Video") Msg($Item_Index)I get -1..why?please note that in the ControlGetHandle function, the "(U:" parameter is my emule's window title(the beginning of it).If in your version the window title starts differently, then change it to your title. Edited May 3, 2009 by Zohar Link to comment Share on other sites More sharing options...
Zohar Posted May 3, 2009 Author Share Posted May 3, 2009 (edited) The solution can be found hereThanks to sPeziFisH Edited May 3, 2009 by Zohar 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