Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

vbscript to login to gmail not working


  • Please log in to reply
1 reply to this topic

#1 FZXP

FZXP

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:29 PM

Posted 04 May 2018 - 07:16 PM

I'm not sure if this belongs in the category but I'm to lazy to keep scrolling. I'm trying to make a VBScript file that will log me into gmail. This is what I have so far

 

On Error Resume Next
Const PAGE_LOADED = 4
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
Do Until objIE.ReadyState = PAGE_LOADED : Call WScript.Sleep(100) : Loop
objIE.Document.all.Email.Value = "USERNAME"
objIE.Document.all.Passwd.Value = "PASSWORD"
If Err.Number <> 0 Then
msgbox "Error: " & err.Description
End If
Call objIE.Document.all.gaia_loginform.submit
Set objIE = Nothing
 
Every time I do this IE opens but I get get an error message that says "Error: Object doesn't support this property or method" and it doesn't work. What am I doing wrong?


BC AdBot (Login to Remove)

 


#2 FZXP

FZXP
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:04:29 PM

Posted 04 May 2018 - 07:26 PM

I also did replace the USERNAME and PASSWORD with my own






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users