I can't seem to get this to work properly with the ksl classifieds website. It needs to select the second category for when you are posting an ad on the classifieds, however i can't seem to get it to select the second category, however it selects the first one just fine... "I can't post full code due to privacy nda issues..." I will answer any questions you have for any unclear parts as best as I can... Thanks!
$tab = 0
$imUploadCount = 0
_IENavigate($ksl, "https://www.ksl.com/?nid=1126")
_IELoadWait($ksl, 5)
Sleep(10000)
;Set category!
Local $cat = _IEGetObjById($ksl, 'cat')
_IEFormElementOptionSelect($cat, $Category, 1, "byText")
Sleep(10000)
;Set subcategory!
Local $subcat = _IEGetObjById($ksl, 'subcat')
_IEFormElementOptionSelect($subcat, $Subcategory, 1, "byText")
Sleep(10000)
;Time to submit the form!
Local $oIEButton_go = _IEGetObjById($ksl, 'go')
_IEAction($oIEButton_go, 'click')
_IELoadWait($ksl, 10)
Sleep(5000)
It reads the $Category & $Subcategory for a .ini file that a gui has configured based off of user selections... "drop down lists with available categories that I manually saved to a .ini" I have checked the spelling of the categories and they are all spelled correctly the categories I am testing with is FREE and FREE (items only, no businesses)