anoopsoni Posted November 29, 2018 Posted November 29, 2018 hello all i am new in auto it i am facing problem to select text from combo box in trading terminal i am using these code but not work for me auto.ControlSend("title of window", "", "[CLASS:ComboBox; INSTANCE:6]","Symbol Name");
faustf Posted November 29, 2018 Posted November 29, 2018 for help is much better if you send code and also application (want automate)
FrancescoDiMuro Posted November 29, 2018 Posted November 29, 2018 @anoopsoni Are you using AutoItX found the code somewhere? Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Zedna Posted November 29, 2018 Posted November 29, 2018 Look here https://www.autoitscript.com/autoit3/docs/libfunctions/_GUICtrlComboBox_SelectString.htm Note: In AutoItX you can't do this. Resources UDF ResourcesEx UDF AutoIt Forum Search
anoopsoni Posted November 29, 2018 Author Posted November 29, 2018 4 hours ago, faustf said: for help is much better if you send code and also application (want automate) acctuly i automate nest application and i am using this code to select symbol name from combo box using c# auto.ControlSend("title of window", "", "[CLASS:ComboBox; INSTANCE:6]", "TCS");(not working it add symbol text front of 1 name in combo box ) instead of same code i am able to select option from another combo box but not in symbol using this code auto.ControlSend("title of window, "", "[CLASS:ComboBox; INSTANCE:3]", "LIMIT");(work fine for me)
Zedna Posted November 29, 2018 Posted November 29, 2018 (edited) According to my previous post: In your c# application you can do this: Func _GUICtrlComboBox_SelectString($hWnd, $sText, $iIndex = -1) If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) Return _SendMessage($hWnd, $CB_SELECTSTRING, $iIndex, $sText, 0, "wparam", "wstr") EndFunc ;==>_GUICtrlComboBox_SelectString Edited November 29, 2018 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
anoopsoni Posted December 2, 2018 Author Posted December 2, 2018 On 29/11/2018 at 9:18 PM, Zedna said: According to my previous post: In your c# application you can do this: Func _GUICtrlComboBox_SelectString($hWnd, $sText, $iIndex = -1) If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) Return _SendMessage($hWnd, $CB_SELECTSTRING, $iIndex, $sText, 0, "wparam", "wstr") EndFunc ;==>_GUICtrlComboBox_SelectString I just confuse becoz when 2 combo box I get hand and select value using same code then what is the problem in 3rd one to automate nest trader
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