amb2301 Posted December 19, 2019 Posted December 19, 2019 Hi Experts, i am new to Autoit, i need a help on following scripts, i used the below script to select the option "NETWORK" from the drop down, but its selecting "RECORDS CORRECTION" as shown in below pic, please suggest me to correct the errors if any... ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]", "ShowDropDown") Sleep(1000) ControlSend("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]", "NETWORK") sleep(1000) ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:2]", "ShowDropDown") sleep(1000) ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:2]", "900-N/A")
Zedna Posted December 19, 2019 Posted December 19, 2019 Just idea: It probably reacts only on first letter in opened list, so last existing first letter from chars N E T W O R K is R --> Records ... Resources UDF ResourcesEx UDF AutoIt Forum Search
amb2301 Posted December 19, 2019 Author Posted December 19, 2019 Hi Zedna, Thanks for your quick reply, Yes, you are right, i tried ControlSend("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]", "N") its working fine now, its selecting "NETWORK" now... but in further filter combos, i have more than 50 dropdowns list, from that list,how can i select particular dropdown....any idea?
Zedna Posted December 19, 2019 Posted December 19, 2019 Have you tried this? ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]", "SelectString", "NETWORK") When ControlCommand/ShowDropDown works fine maybe ControlCommand/SelectString will be working too ... Resources UDF ResourcesEx UDF AutoIt Forum Search
amb2301 Posted December 19, 2019 Author Posted December 19, 2019 I tried this code, but its selecting NETWORK.. ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]", "SelectString", "INORDER") I think select string is not working properly
amb2301 Posted December 19, 2019 Author Posted December 19, 2019 now again the same problem, i just tried this code,it opens dropdown but remains in NETWORK... Dont know, where i made mistake ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]", "ShowDropDown") Sleep(1000) ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]","R") sleep(1000) ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:2]", "ShowDropDown") sleep(1000) ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:2]", "510")
Nine Posted December 20, 2019 Posted December 20, 2019 6 hours ago, amb2301 said: Please help me on this topic Maybe if you could make a runable snippet of your problem, more ppl will be incited to help you. What do you think ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
amb2301 Posted December 24, 2019 Author Posted December 24, 2019 (edited) runable snipnet? please give me any example script...that selects a string from dropdown button....... i will try to learn with that script, please someone help me on this topic as its urgent Edited December 24, 2019 by amb2301 update
Zedna Posted December 24, 2019 Posted December 24, 2019 (edited) Try if _GUICtrlComboBox_GetList() works with your "nonstandard ClassName" control. If answer is YES then you can get all entries from list and you can try to use send desired precise number of "arrow down" keys in opened list. Also look at all functions in ...\Include\GuiComboBox.au3 ... Edited December 24, 2019 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Danp2 Posted December 24, 2019 Posted December 24, 2019 On 12/19/2019 at 5:48 PM, amb2301 said: ControlCommand("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]","R") You've left out the "SelectString" parameter, and I'm not sure this command was designed to work like this. You could also try something like this -- $hCombo = ControlGetHandle("Job Creation", "", "[CLASS:SNET$combobox;INSTANCE:1]") _GUICtrlComboBox_SelectString($hCombo, "Network") Latest Webdriver UDF Release Webdriver Wiki FAQs
amb2301 Posted January 6, 2020 Author Posted January 6, 2020 (edited) Its working Fine now Thank you so much for your valuable Help Edited January 6, 2020 by amb2301 update
amb2301 Posted January 6, 2020 Author Posted January 6, 2020 (edited) Thank you so much Danp2 & Zedna, Both of your helps are much appreciated. Edited January 6, 2020 by amb2301
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