Sign in to follow this  
Followers 0
Skay

Click on an item form

10 posts in this topic

#1 ·  Posted (edited)

<form action = object-transfers.php method = post style = 'display: inline;'>
<input type = hidden name = sign_md5 value = a1ad42101b8117200abfc8585f900117>
<input type = hidden name = action1 value = buyr> <nobr> <input type = text name = amount value = '0' size = 5> <input type = submit value = 'Order' class = mainbutton> </ nobr> </ form> </ td> </ tr> </ table>

How can I make a click on a form? further highlight current meaning to overwrite it .Next click on the button to order.

Edited by Skay

Share this post


Link to post
Share on other sites



I suspect that this still involves game automation. You've already been warned twice about this. :geek:

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Your suspicions, do not carry any sense! Where are you saw the automation for the game?

Edited by Skay

Share this post


Link to post
Share on other sites

search for IE.AU3. I can not set the correct form

$oForm = _IEFormGetObjByName($oIE, "form")
$oInputAction1 = _IEFormElementGetObjByName($oIE, "text")
_IEAction($oInputAction1, "focus")
_IEAction($oInputAction1, "selectall")

:D is not that something

Share this post


Link to post
Share on other sites

Your suspicions, do not carry any sense! Where are you saw the automation for the game?

 

Ok... then give us the link to the website.

Share this post


Link to post
Share on other sites
Danp2
www.drivebike.ru
jguinch
$oForm = _IEFormGetObjByName($oIE, "form")

$oInputAction1 = _IEFormElementGetObjByName($oIE, "amount")

_IEAction($oInputAction1, "focus")

_IEAction($oInputAction1, "selectall")

does not work :

--> IE.au3 T3.0-1 Warning from function _IEFormGetObjByName, $_IESTATUS_NoMatch
--> IE.au3 T3.0-1 Error from function _IEFormElementGetObjByName, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-1 Error from function _IEAction(focus), $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEAction(selectall), $_IESTATUS_InvalidDataType
+>19:09:56 AutoIt3.exe ended.rc:0



			
		

Share this post


Link to post
Share on other sites

www.drivebike.ru does not contain this form in the HTML source. How can web test ?

selectall selects all the page content. If you want to select the text, just use $oInput.select()

 

This works :

#Include <IE.au3>

$oIE = _IECreate(@scriptDir & "\test.html")
$oForm = _IEFormGetCollection($oIE, 0)

$oInput = _IEFormElementGetObjByName($oForm, "mytext")
$oInput.select()
with this html source (test.html)

 

<html>
<head><title>NO TITLE</title></head>

<body>

<form name="myform">
<input type="text" name="mytext" value="This is some text">
<input type="submit" value="Submit">
</form>

</body>

</html>

Share this post


Link to post
Share on other sites
jguinch

Thank you very much! now it worked :cheer:

This form is to be in a private office. delivery option

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