Jump to content

how to click button without name?


Recommended Posts

; heyah sms
#include <IE.au3> 

$PrefixToSelect = "880"
$PhoneNumber = "123456"

$Message = "example text"
$Signature = "Makalele"

$oIE = _IECreate ("http://sms.priv.pl/",0,1,1,0)
$oForm = _IEFormGetObjByName ($oIE, "bramka")

$oPref = _IEFormElementGetObjByName ($oForm, "siec")
_IEFormElementOptionselect ($oPref, $PrefixToSelect, 1, "byText")

$oNumber = _IEFormElementGetObjByName ($oForm, "number2")
_IEFormElementSetValue ($oNumber, $PhoneNumber)

$oMessage = _IEFormElementGetObjByName ($oForm, "tresc")
_IEFormElementSetValue ($oMessage, $Message)

$oSignature = _IEFormElementGetObjByName ($oForm, "od")
_IEFormElementSetValue ($oSignature, $Signature)

Hi there! Up here is my simple code. It has to simply send sms. But i don't know how to click button "Wyślij SMS" (eng. "Send SMS"). It has no name. That's what i found:

<input type="submit" class="btn" value="Wyślij SMS !" alt="Wyślij" src="/sms.szyderca.com/images/wyslij_sms.jpg" onclick="return nom();">

Plz help me how to click it oO

edit: FormSubmit doesn't work too.

Edited by Makalele
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...