pezo89 Posted December 1, 2010 Share 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. Link to comment Share on other sites More sharing options...
JohnOne Posted December 1, 2010 Share 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. Link to comment Share on other sites More sharing options...
Zedna Posted December 1, 2010 Share 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 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