icu Posted September 2, 2011 Posted September 2, 2011 (edited) Dear AutoIt community, How do I get AutoIt to read all the options of an IE select box into an array so I can tell it to go through each selection one by one? I know the name of the selection box (via IE-Builder) but I'm having a difficult time figuring out the code to get AutoIt to read all of the selection options. The end result I want is to get AutoIt to select each option one by one and submit the form. I figure I need to get AutoIt to 'read' each selection string of the selection box and put each string into an array to do a FOR IN NEXT loop so AutoIt can go through them one by one submitting the form each time. If there is an an easier way please let me know. Of course I've pressed F1 but I can't see anything in the help file that will help :-) As usual any and all help is greatly appreciated. -icu Edited September 2, 2011 by icu
icu Posted September 2, 2011 Author Posted September 2, 2011 (edited) Figured it out went something like this: $oIE = _IECreate ($sURL) $oSelectBox = _IEGetObjByName ($oIE, "SelectBox") $sSelectBox = _IEPropertyGet ($oSelectBox, "innertext") ConsoleWrite ($sSelectBox) Once I got the string it's easy to chop it up into an array. AutoIt is so awesome, pity my knowledge of it isn't yet... Edited September 2, 2011 by icu
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