stevepryan Posted August 2, 2019 Posted August 2, 2019 We are using an ERP package where there are text box fields which have no validation. However, in this organisation, we want to restrict or at least offer a list of expected values for data entered. Assuming the user has tabbed to the correct field, can I get AutoIt to simulate a windows drop down list? That is, popup a drop down list of values and when the user selects one, enter that value in to the ERP field and then the list disappears. The user could be trained to use a hot key or similar to trigger the script. Any suggestions or examples? Any help appreciated.
FrancescoDiMuro Posted August 2, 2019 Posted August 2, 2019 Hi @stevepryan, and welcome to the AutoIt forums AutoIt provides a lot of tools to simulate user interaction, and, thanks to its vastety of functions, it's difficult to tell what is the best in your case. If you want to simulate a Windows dropdown list on a control, then you are talking about a ComboBox control, and for that, as other controls, there is an UDF (User Defined Functions), that you can use to manage your combo-boxes (create, control, delete, and so on). So, take a look at _GUICtrl_ComboBox* functions in the Help file, and use AutoItWindowInfoTool to obtain the various information you need to interact with them (if those controls are not created by you). Please, provide as many information as you can since not everyone on here has a magic ball (Joking!) Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
stevepryan Posted August 3, 2019 Author Posted August 3, 2019 Thanks for the reply. I will check out the ComboBox control.
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