elmoi0010 Posted January 16, 2014 Share Posted January 16, 2014 Anyone can help me to click this button ? Am really new to this programming languaje :S sorry for my noob question :C. Thanks to all Link to comment Share on other sites More sharing options...
JohnOne Posted January 16, 2014 Share Posted January 16, 2014 Source if anyone is interested. 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...
elmoi0010 Posted January 16, 2014 Author Share Posted January 16, 2014 Source if anyone is interested. Yeah sorry thanks c: Link to comment Share on other sites More sharing options...
michaelslamet Posted January 16, 2014 Share Posted January 16, 2014 See >this Link to comment Share on other sites More sharing options...
elmoi0010 Posted January 17, 2014 Author Share Posted January 17, 2014 See >this It's not working bro :C... look my code #include <ie.au3> $oIE = _IECreate ("https://meltmail.com/") _IELoadWait($oIE) $Email = _IEGetObjByName($oIE, "meltmail[email]") _IEPropertySet($Email, 'innertext', 'myemailtest@gmail.com') $oLinks = _IETagNameAllGetCollection($oIE, "imput") for $oLink in $oLinks if string($oLink.type) = "submit" and string($oLink.value) = "Create Melt Mail" Then _IEAction($oLink, "click") EndIf Next :S but its not working D: Link to comment Share on other sites More sharing options...
JohnOne Posted January 17, 2014 Share Posted January 17, 2014 (edited) You should get a reference to the form first. Local $oForm = _IEFormGetObjByName($oIE, "mminputform") Local $oQuery = _IEFormElementGetObjByName($oForm, "meltmail[email]") _IEFormElementSetValue($oQuery, "e@mail.foo") _IEFormSubmit($oForm) This is all in the help file. Edited January 17, 2014 by JohnOne 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...
elmoi0010 Posted January 17, 2014 Author Share Posted January 17, 2014 (edited) You should get a reference to the form first. Local $oForm = _IEFormGetObjByName($oIE, "mminputform") Local $oQuery = _IEFormElementGetObjByName($oForm, "meltmail[email]") _IEFormElementSetValue($oQuery, "e@mail.foo") _IEFormSubmit($oForm) This is all in the help file. is not working too bro here is what i did: Local $oForm = _IEFormGetObjByName($oIE, "commit") $oLinks = _IETagNameAllGetCollection($oIE, "imput") for $oLink in $oLinks if string($oLink.type) = "submit" and string($oLink.value) = "Create Melt Mail" Then _IEAction($oLink, "click") EndIf Next Thanks for your help :C. Edited January 17, 2014 by elmoi0010 Link to comment Share on other sites More sharing options...
michaelslamet Posted January 17, 2014 Share Posted January 17, 2014 Cant test it at this moment, but you misstype "input" as "imput" try this: $oLinks = _IETagNameAllGetCollection($oIE, "input") for $oLink in $oLinks if string($oLink.type) = "submit" and string($oLink.value) = "Create Melt Mail" Then _IEAction($oLink, "click") ExitLoop EndIf Next There are also another simple ways. That is just one of many ways to do it Link to comment Share on other sites More sharing options...
michaelslamet Posted January 17, 2014 Share Posted January 17, 2014 You should use _IETagNameGetCollection instead of _IETagNameAllGetCollection #include <ie.au3> $oIE = _IECreate ("https://meltmail.com/") _IELoadWait($oIE) $oLinks = _IETagNameGetCollection($oIE, "input") for $oLink in $oLinks if string($oLink.type) = "submit" and string($oLink.value) = "Create Melt Mail" Then _IEAction($oLink, "click") ExitLoop EndIf Next Link to comment Share on other sites More sharing options...
Solution elmoi0010 Posted January 17, 2014 Author Solution Share Posted January 17, 2014 You should use _IETagNameGetCollection instead of _IETagNameAllGetCollection #include <ie.au3> $oIE = _IECreate ("https://meltmail.com/") _IELoadWait($oIE) $oLinks = _IETagNameGetCollection($oIE, "input") for $oLink in $oLinks if string($oLink.type) = "submit" and string($oLink.value) = "Create Melt Mail" Then _IEAction($oLink, "click") ExitLoop EndIf Next Meeeeeeeen! Thanks it works thanks in advanced <3 i will be asking in this forum thing that i dont know jaja thanks thanks Link to comment Share on other sites More sharing options...
michaelslamet Posted January 17, 2014 Share Posted January 17, 2014 Meeeeeeeen! Thanks it works thanks in advanced <3 i will be asking in this forum thing that i dont know jaja thanks thanks Glad to help Please mark this thread as solved 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