pezo89 2 Posted December 1, 2010 Hi fellas, i where just wondering how can i check for an element, and do an action based upon if it exists or not. something like an imgsearch would do.. say for example if this exist: $oSelect61= _IEFormElementGetObjByName ($oForm, "field_1_20") then do this: _IEFormElementOptionselect ($oSelect1, "07", 1, "byValue" if not. pass it. i reckon it is a quite easy way to do it that i'm just keep missing. Share this post Link to post Share on other sites
JohnOne 1,603 Posted December 1, 2010 if IsObj($oSelect61) then ;blah else ;blah blah endif AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
Zedna 280 Posted December 1, 2010 (edited) $oSelect1 = _IEFormElementGetObjByName ($oForm, "field_1_20") If Not @error Then _IEFormElementOptionselect ($oSelect1, "07", 1, "byValue" EndIf Edited December 1, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites