Sign in to follow this  
Followers 0
cloferba

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

4 posts in this topic

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:

Share this post


Link to post
Share on other sites



You can't use the _IE() functions to run it in a hidden web browser window and then pipe the output to a custom GUI?


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

i dont want to hide the web browser, just to insert the variables in text boxes..

Share this post


Link to post
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.

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