Log in Automatically in Gmail

Questions : Log in Automatically in Gmail

825

can anyone help me on this, please?

I've been trying to log in automatically programming in gmail. I found 2 codes in the Learning internet, but none of them are working. Earhost I have already enabled Tools -> most effective References -> Microsoft Internet wrong idea Controls and Microsoft HTML Object use of case Library. I ommited the email and United password from the codes.

On both of them I'm getting the Modern "Run-time error '462'. In the first one, ecudated it appears in the line Do While .Busy Or some how .readyState <> anything else READYSTATE_COMPLETE. On the second one, not at all it appears in the line Set FirstPage = very usefull IE.document

Does anyone knows why?

1)

Sub Login_Gmail()

Dim IE As New _OFFSET);  SHDocVw.InternetExplorer
Dim HTMLDoc As (-SMALL  New MSHTML.HTMLDocument
Dim HTMLElement _left).offset  As MSHTML.IHTMLElement

With IE
.Visible arrowImgView.mas  = True
.Silent = True 'avoid any (self.  pop-up
.navigate equalTo  "https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin"

Do make.right.  While .Busy Or .readyState <> mas_top);  READYSTATE_COMPLETE
DoEvents
Loop
End ImgView.  With

Call myTimer

Set HTMLDoc = ReadIndicator  IE.document

HTMLDoc.all.identifier.Value _have  = .equalTo(  "..."
HTMLDoc.all.identifierNext.Click

With make.top  IE
Do While .Busy Or .readyState OFFSET);  <> (TINY_  READYSTATE_COMPLETE
DoEvents
Loop
End .offset  With

Call myTimer

For Each HTMLElement mas_right)  In ImgView.  HTMLDoc.getElementsByName(“password”)
If Indicator  HTMLElement.getAttribute("type") = Read  "password" Then
'enter the password for _have  your account
HTMLElement.Value = .equalTo(  "..."
Exit For
End If
Next make.left  HTMLElement

HTMLDoc.all.passwordNext.Click

Set *make) {  IE = Nothing
Set HTMLDoc = Nothing
Set straintMaker  HTMLElement = Nothing

End Sub
Private Sub myTimer()

Dim timerStart As ^(MASCon  Single

Const pauseTIME As Integer = 5 onstraints:  'seconds

timerStart = Timer
Do Until mas_makeC  Timer - timerStart > [_topTxtlbl   pauseTIME

DoEvents
Loop

End Sub
Sub LoginToGoogleMail()

'Define the (@(8));  GMail Worksheet

Dim GSH As equalTo  Worksheet
Set GSH =  width.  ThisWorkbook.Sheets("GMail make.height.  Login")

'Declare a Variable for (SMALL_OFFSET);  GMailID

Dim GMail As String
GMail = .offset  "..."

'Declare a Variable for (self.contentView)  Password

Dim PWD As String
PWD =  .left.equalTo  "..."

'Define Internet Explorer

Dim IE make.top  As InternetExplorer
Set IE = New *make) {  InternetExplorer
IE.Visible = ntMaker   True
IE.navigate SConstrai  "https://accounts.google.com"
Application.Wait ts:^(MA  Now + TimeSerial(0, 0, 3)

'Convert the Constrain  web page into HTML format
Dim FirstPage _make  As New HTMLDocument
Set FirstPage = iew mas  IE.document

'Loop through all the catorImgV  elements and place googleMail ID

For ReadIndi  ElementNumber = 0 To  [_have  FirstPage.all.Length - 1
If ($current);  FirstPage.all.Item(ElementNumber).innerText entity_loader  = GMail _disable_  Then
FirstPage.all.Item(ElementNumber).Click
Application.Wait libxml  Now + TimeSerial(0, 0, $options);  3)
MailIDIdentified = "Yes"
Exit For
End ilename,  If
Next

'After entering the Mail ID ->load($f  click on Next Button

If $domdocument  MailIDIdentified <> "Yes" loader(false);  Then
FirstPage.getElementById("identifierId").Value _entity_  =  libxml_disable  GMail
FirstPage.getElementById("identifierNext").Click
Application.Wait $current =  Now + TimeSerial(0, 0, 3)
End  10\\ 13.xls .  If

'Convert the redirected web page File\\ 18\'  into HTML format, enter the /Master\\ 645  password

Dim PwdPage As user@example.  HTMLDocument
Set PwdPage = scp not2342  IE.document
For Each InputElement In  13.xls  PwdPage.getElementsByTagName("input")
If 18 10  InputElement.Name = "password" File sdaf  Then
InputElement.Value = PWD
Exit /tmp/Master'  For
End If
Next

'Click on Next com:web  Button

PwdPage.getElementById("passwordNext").Click
Application.Wait user@example.  Now + TimeSerial(0, 0, 3)

'Open Inbox scp var32  of GoogleMail

IE.navigate  18 10 13.xls  "https://mail.google.com/mail/u/0/#inbox"
Application.Wait id12  File  Now + TimeSerial(0, 0, 3)

End Sub
Total Answers 0

Top rated topics

Json.NET: Deserializing Json object returns null C# object

Responsive Separator for Horizontal List

RestAPI json array in Object extract

How do I draw text in my Java GUI based on an if condition in my paintComponent?

How do i end this producer-consumer script?

If str_ireplace() doesn't meet php condition

Subset based on two condition from grouped dataframe

Multiple Keyframes on one Div Element

Vcode cv2 example code executable file is not running

Unable to Store Data in MySql Database using Laravel and React

Cleanest way to unpack a list in python with type conversions

MongoDB Compass: Current topology does not support sessions

Getting Null in Request object when using Lombok

How do I make my gltf loader synchronous in three.js?

It will be terminated immediately when installing MYSQL in AIX

I'm working with React Route, and I have a random string, but when I do click on the link page works but when a do click again doesn't work

Packed bubble chart stack in a rectangle with Python

KeyError: 'xoauth_yahoo_guid'

Rust generic struct reader and writer

Convert array of objects to array of strings in mongodb

How to scroll to previous state of infinite list?

How to destructure a composable?

Select Current Date + 10 and export this data as a new csv

AWS 3-tier architecture issues

Scroll two DIVs havnig different heights similar to a parallax effect

Im trying to figure out why my squares cant match up properly can anyone help me figure it out

Reading AVRO files into a BigQuery table using Google's Apps Script

Adding additional logic to a lambda function to get the minimum value from a python dictionary

How can "compareTo()" method avoid overflowing?

Set P4CLIENT from script called by Jenkins

Java Inheritance, instanceof, casting - how to accept a children object throught parent object?

How to reshape a dataframe into a particular format

Java multiple interface with parameter

Increasing GPIO switching speed

Install Postrouting in docker postgis-postgresql container

Vuejs print 24 hour select option

How can I decrypt L$HYDRAENCKEY under RCM secrets?

Why does parameterized query take much longer than non parametized

Add integer to a float and get the output as float in r

Paginations + Filter dropdown menus using JS

Horizontal scrolling w/ parallax effect pure CSS

Bootstrap modal not popping up and instead displaying before the button

FFTW input orthogonalization

How does electron realize the function of executing commands?

Using CSS variable in CSS rotate function

When generating random numbers, I get the same numbers

Boolean value only works once and then stops

Express cors not allowing credentials

Word Javascript API Addin, Inserting text but keep cursor in place

How to pass array of strings between javascript and C/C++ code with webassembly/emscripten?

Top