Hadez 0 Posted May 4, 2010 Hi, currently im using a pretty noob way to select a catagory from a combobox. Does anyone know a better way to do this? It will select a catagory based on a variable name. It will basically be, If $variable says 'book' then select the option 'book' from drop down list. $oCatagory = _IEFormElementGetObjByName($oForm, "type") WinSetState($oHWND, "", @SW_ENABLE) _IEAction($oCatagory, "focus") send("e") send("e") ;to get to the 2nd name beginning with 'e' in the list Any help would be much appreciated Share this post Link to post Share on other sites
funkey 128 Posted May 4, 2010 I think you are looking for _IEFormElementOptionselect. Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Share this post Link to post Share on other sites
Hadez 0 Posted May 4, 2010 $oCatagory = _IEFormElementGetObjByName($oForm, "type") _IEFormElementOptionselect ($oCatagory, "Book", 1, "bytext") Works great. Cheers mate for the pointer Share this post Link to post Share on other sites