Jump to content

Help clicking to submit Google Form


Recommended Posts

Are you using <IE.au3>
if you do, you can do like this:
 

$colTags = _IETagNameGetCollection($oIE, "span")
For $oTag In $colTags
If $oTag.value = "Submit" Then
    _IEAction($oTag, "click")
_IENavigate($oIE,"javascript:void(0);") ; javascript:void is triggered.

tell me if it works.

Link to comment
Share on other sites

8 hours ago, RyukShini said:

Are you using <IE.au3>
if you do, you can do like this:
 

$colTags = _IETagNameGetCollection($oIE, "span")
For $oTag In $colTags
If $oTag.value = "Submit" Then
    _IEAction($oTag, "click")
_IENavigate($oIE,"javascript:void(0);") ; javascript:void is triggered.

tell me if it works.

I am using IE.au3, but I'm not sure where to end the If and For functions. Not working without those.

Did some more searching and came across a similar setup.  This works

#include <IE.au3>
$oIE = _IECreate("https://docs.google.com/forms/d/1hEFvkQfDeqIOLW3QeyB-FmkCFuw2EPwKkc383X0MZEA")
$oAs = _IETagNameGetCollection($oIE, "span")
For $oA In $oAs
    If _IEPropertyGet($oA, "innertext") = "Submit" Then _IEAction($oA, "click")
Next

 

Edited by mpcluever
Found solution
Link to comment
Share on other sites

8 hours ago, mpcluever said:

I am using IE.au3, but I'm not sure where to end the If and For functions. Not working without those.

Did some more searching and came across a similar setup.  This works

#include <IE.au3>
$oIE = _IECreate("https://docs.google.com/forms/d/1hEFvkQfDeqIOLW3QeyB-FmkCFuw2EPwKkc383X0MZEA")
$oAs = _IETagNameGetCollection($oIE, "span")
For $oA In $oAs
    If _IEPropertyGet($oA, "innertext") = "Submit" Then _IEAction($oA, "click")
Next

 

Well done.

I may have to use this soon actually, mind if I snatch that code? :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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