StandardUser Posted April 12, 2010 Share Posted April 12, 2010 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 Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 12, 2010 Share Posted April 12, 2010 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 Link to comment Share on other sites More sharing options...
Spiider11 Posted April 12, 2010 Share Posted April 12, 2010 (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 April 12, 2010 by Spiider11 Link to comment Share on other sites More sharing options...
StandardUser Posted April 12, 2010 Author Share Posted April 12, 2010 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? Link to comment Share on other sites More sharing options...
Spiider11 Posted April 13, 2010 Share Posted April 13, 2010 (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 April 13, 2010 by Spiider11 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now