Sign in to follow this  
Followers 0
elmoi0010

Click a button ?

11 posts in this topic

Anyone can help me to click this button ? 

screenshot_27.png

Am really new to this programming languaje :S sorry for my noob question :C.

Thanks to all

Share this post


Link to post
Share on other sites



Source if anyone is interested.

Yeah sorry thanks c:

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by JohnOne

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

#7 ·  Posted (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 by elmoi0010

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

 

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0