Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Help needed with this simple code using _IEFormGetObjByName

$
0
0

I am starting into the world of ie.au3 and seeing great potential. I was working on converting one of my existing scripts over to using ie.au3. I could not get it to run so decided to try something very simple. In the code below I want to open Google and search for :AutoIt IE.au3". It fails with the following message when I try to run (SciTE):

 

--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidDataType

 

When I look at the source for the page I see the form name is "gbqf" which does not work in the code below.

<form id=gbqf name=gbqf method=get action="/search" onsubmit="gbar.logger.il(31);">

Here is the code I am trying to use:

#include <IE.au3> Local $oIE = _IECreate("http://www.google.com") Local $oForm = _IEFormGetObjByName($oIE, "qbqf") Local $oQuery = _IEFormElementGetObjByName($oForm, "q") _IEFormElementSetValue($oQuery, "AutoIt IE.au3") _IEFormSubmit($oForm)

Thanks for any help.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>