Jump to content

How to detect a text box in chrome and insert text?


cloferba
 Share

Recommended Posts

first at all this is an example

this script must enter to http://www.freecontactform.com/free.php and write the variables in certain text boxes, so I have this code:

$txt1 = "name"
$txt2 = "message"
 
;start chrome
ShellExecute("chrome.exe", "[url="http://www.freecontactform.com/free.php"]http://www.freecontactform.com/free.php[/url]","","")
 
WinWait("Contact Form Free - Google Chrome", "")

how can i detect the "Full Name" box and insert the variable 1?

and how to do the same for "Message" box and insert the variable 2?

finally, how can i press the "Submit Form"?

the autoit windows info application doesnt show me the text boxes, thats why i need help :graduated:

Link to comment
Share on other sites

The autoit info window wont work with any kind of web browser. It might give you the ids of the back button, home, refresh, etc.. but not anything that is web based like the "submit form" button your talking about. Look at all the examples for the Internet Explorer UDF. I see you want to use chrome but chrome does not have any kind of COM. IE has a COM which makes it possible for other scripts or programs to communicate with it and tell it what to do.

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...