offtopic Posted November 20, 2014 Share Posted November 20, 2014 Hello, might i enquire how i would go about clicking or submiting this submit button with the IE functions. I do not have access to name or id. <input type="submit" class="input_submit" value="Post" /> Link to comment Share on other sites More sharing options...
JohnOne Posted November 20, 2014 Share Posted November 20, 2014 You could start with looking at the example code for _IEFormGetCollection. 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...
Moderators SmOke_N Posted November 20, 2014 Moderators Share Posted November 20, 2014 (edited) I have not tested this, but this may work. ;Global $go_Submit = _IEGetObjByClass($oIE, "input_submit", "submit", "Post") Func _IEGetObjByClass(ByRef $o_obj, $s_class, $s_type = "", $s_value = "") If Not IsObj($o_obj) Then Return SetError(1, 0, 0) EndIf Local $o_items = _IETagNameAllGetCollection($o_obj) If Not IsObj($o_items) Then Return SetError(2, 0, 0) EndIf For $o_item In $o_items If String(Execute("$o_item.classname")) <> $s_class Then ContinueLoop EndIf If StringLen($s_type) Then If String(Execute("$o_item.type")) <> $s_type Then ContinueLoop EndIf EndIf If StringLen($s_value) Then If String(Execute("$o_item.value")) <> $s_value Then ContinueLoop EndIf EndIf Return $o_item Next Return SetError(3, 0, 0) EndFunc Edited November 20, 2014 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
mikell Posted November 20, 2014 Share Posted November 20, 2014 '?do=embed' frameborder='0' data-embedContent>> 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