error471 Posted January 14, 2018 Posted January 14, 2018 Hello folks, I am trying to make AutoIt open the website finanzen.net and try to input a value into the search field and submit. I have used the search and tried many suggestions, but I failed. I am not an expert in IE.au3. Could someone give me an advice on how to solve this? Best regards error471
Jury Posted January 14, 2018 Posted January 14, 2018 look at the AutoIt help item Example for _IEFormElementGetObjByName (1) you want to open the page in your browser (2) find the form which deals with the search you wish to perform (use your browsers View source and look for <form for one you want) (3) find the Element (input field) for that form (4) Set the Element (input field) with your search text (5) Submit the form get back with your attempt for further help
benners Posted January 14, 2018 Posted January 14, 2018 No error checking with this #include <IE.au3> Local $o_Browser = _IECreate('https://www.finanzen.net/', 1) Local $o_Forms = _IEFormGetObjByName($o_Browser, 'mmssearch') Local $o_SearchBox = _IEFormElementGetObjByName($o_Forms, '_search') _IEFormElementSetValue($o_SearchBox, 'Google') Local $o_SearchLink = _IEGetObjById($o_Browser, 'form-submit') _IEAction($o_SearchLink, 'click')
benners Posted January 14, 2018 Posted January 14, 2018 (edited) You're welcome. It will if he reads the code and researches it. Looks like you're Judge and Jury Edited January 14, 2018 by benners
error471 Posted January 14, 2018 Author Posted January 14, 2018 Thank you very much. Some methods don't work with every page. I still haven't understood why. But this helps me a lot.
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