Sign in to follow this  
Followers 0
StandardUser

_IEFormElementGetValue

5 posts in this topic

Good day,

I know, it was mentioned many times in the forums, but all the HTML/Javascript stuff seems like a nightmare for me, so I was not able to modify the examples to my needs on my own. How to achieve this simple task: open IE, navigate to google.com, enter some search string(fortunately, I can do it on my own :( ) and import the value of the search string to AutoIt variable only when "submit" button is clicked? I hope I didn't annoy anyone with repetitive questions :)

Share this post


Link to post
Share on other sites



So, how far did you get? Post the script you have as far as it goes.

:(


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

try _IsPressed() and MouseGetPos() if your windows is not minimized . Then you can check if your coordinates something like this

$mouse_x >= $button_start_x AND $mouse_x <= button_end_x AND $mouse_y >= $button_start_y AND $mouse_x <= button_end_y

or you could try to get the value of the form after you press the button and the page loads .

I hope you understand what I ment and hope it helps !

Edited by Spiider11

Share this post


Link to post
Share on other sites

Spiider11,

thanks a lot for a reply, but it shouldn't be a "mechanical" method to determine if the submit button was clicked. Any other hints, please? :(

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i think there is a way , but that could be harder, try _IEFormElementOptionselect , that could do it , but you have to use check google's source code , and that's kind of messed up :( or you could try _IEHeadInsertEventScript (if you know some basic javascript) , if that's not it .. you have to explain more , because i can't understand exactly what you want.

Edited by Spiider11

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