bobbo85 Posted August 11, 2008 Share Posted August 11, 2008 There is a combobox on a webpage i want to manipulate. I have a combobox in my GUI that allows users to pick the priority of something, then I found the values in the html that go with the text options. $jobpriority = GUICtrlCreateCombo("Hot", 104, 360, 145, 25,$CBS_DROPDOWNLIST) GUICtrlSetData(-1, "LukeWarm|Cold") $hotcold=guictrlread($jobpriority) Switch $hotcold case "Hot" $hotcold="2" case "Lukewarm" $hotcold="3" EndSwitch dim $oIE=_IECreate ("") dim $o_form = _IEFormGetCollection ($oIE, 0) dim $o_hotcold=_IEFormElementGetObjByName($o_form,"cboPriority") _IEFormElementSetValue($o_hotcold,$hotcold) I tested the guictrlread, it gets the string right, and the switch also works, gets me the right number value... i just must be doing something wrong when setting the value of a combobox on a webpage. Link to comment Share on other sites More sharing options...
bobbo85 Posted August 11, 2008 Author Share Posted August 11, 2008 Nevermind everyone! I accidentally (via copy and paste to save time typing code) set the value to something that didn't work. Problem solved! 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