Jump to content
Sign in to follow this  

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

Share this post

Link to post
Share on other sites

You can find the object by numerating, look at the function _IEFormElementGetCollection (or similar).

Also this part is Javascript: onclick="return nom();"

You can run the function nom by doing this: _IENavigate($oIE, "javascript:nom();")

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.