Jump to content

Recommended Posts

Posted

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

Posted

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

 

Posted

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')

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...