Skip to content
the-Automator
the-Automator
Work Smarter, Not Harder!
  • header banner
Skip to content
  • Home
  • About Us
    • Contact the-Automator
    • Schedule a Meeting
    • About Us – Learn about the-Automator team
    • Privacy Policy
  • Services
    • Access Pass – Get access to all our downloads <$5
    • AHK Mastery Subscription to AHK Courses
    • Project Work
    • Consultations
    • Tutoring
  • AI
  • Tools by Task
  • AHK Resources
    • Automation Resources
    • AHK Merchandise
    • AHK Newsletter
    • AHK Editors
      • AHK Script Maker
      • VS Code
      • AHK Studio
      • Notepad++
      • SciTE
    • AHK Resources
      • AHKCon / First ever AutoHotkey Conference
      • AutoHotkey Products
      • AutoHotkey Webinars
      • AHK Podcasts
      • The ultimate list of AutoHotkey Resources
    • AutoHotkey By Topic
      • APIs
      • AutomateMyTask
      • AutoHotkey Functions
      • COM
      • Controls in AutoHotkey
      • Downloads
      • Excel
      • Regular Expressions in AutoHotkey
      • Snipping Tool
      • Web Scraping
      • Outlook & AutoHotkey
  • ➡️Access Your Courses⬅️
    • General
    • Autohotkey v2
    • AutoHotkey v1
  • Login
  • We use AI to build automation that gives you your time back. 🤖 Tools, training and custom work.

    New here❓

    Start Here

    Discover Our

    Courses

    Schedule

    a meeting

    Downloads

    Browse by Task

    Testimonials

    Using AI❓

    AI Tools

Home Posts tagged "login to google"

Tag: login to google

Automate the Login to Gmail / YouTube / Google+ with AutoHotkey

Person reading a newspaper at a desk beside a black water bottle with a green logo and a laptopIn the fourth post of this series I demonstrate how to Login to Gmail / YouTube / Google+ with AutoHotkey.Login to Gmail / YouTube / Google+

In this web scraping example we saw how the Google login looks like it is loading a separate page but, in reality, is not.  Web scraping is always fun (and can be very frustrating) because HTML developers can think of so many different ways to accomplish their objectives.  Check this page for the other scripts I used in the video.

Video demonstrating Login to Gmail / YouTube / Google+

Here is the AutoHotkey script where I automate Login to Gmail / YouTube / Google+

#SingleInstance, Force
Browser_Forward::Reload ;RControl::
Browser_Back::
;************************************************************
Page:="https://accounts.google.com/ServiceLogin?sacu=1&continue=https%3A%2F%2Faccounts.google.com%2FManageAccount&hl=en#identifier"

pwb := WBGet()
If (pwb.locationURL !=page){
pwb.Navigate(page) ;Navigate to URL
while pwb.busy or pwb.ReadyState != 4 ;Wait for page to load
	Sleep, 100
}
pwb.document.GetElementsByName("Email")[0].Value :="[email protected]" ;Object Name- Set array value
pwb.document.GetElementsByName("signIn")[0].click()
Sleep, 300
pwb.document.GetElementsByName("Passwd")[0].Value :="The_Stupidist_Password!"
pwb.document.GetElementsByName("signIn")[0].click()
;************Pointer to Open IE Window******************
WBGet(WinTitle="ahk_class IEFrame", Svr#=1) {               ;// based on ComObjQuery docs
   static msg := DllCall("RegisterWindowMessage", "str", "WM_HTML_GETOBJECT")
        , IID := "{0002DF05-0000-0000-C000-000000000046}"   ;// IID_IWebBrowserApp
;//     , IID := "{332C4427-26CB-11D0-B483-00C04FD90119}"   ;// IID_IHTMLWindow2
   SendMessage msg, 0, 0, Internet Explorer_Server%Svr#%, %WinTitle%
   if (ErrorLevel != "FAIL") {
      lResult:=ErrorLevel, VarSetCapacity(GUID,16,0)
      if DllCall("ole32\CLSIDFromString", "wstr","{332C4425-26CB-11D0-B483-00C04FD90119}", "ptr",&GUID) >= 0 {
         DllCall("oleacc\ObjectFromLresult", "ptr",lResult, "ptr",&GUID, "ptr",0, "ptr*",pdoc)
         return ComObj(9,ComObjQuery(pdoc,IID,IID),1), ObjRelease(pdoc)
      }
   }
}

Two women smiling and looking at a computer screen together in a bright office, one pointing at the monitor.

May 3, 2017 August 4, 2026AutoHotKey, Web Scraping AutoHotKey, automate login, login automatically, login to gmail, login to gmail youtube google, login to google, login to YouTube, web scraping
  • Account

    • Register
    • Log in
    • My Account
    • Easily Merge files with this simple Executable that quickly appends Videos or Audio files screenshot Easily Merge files with this simple Executable that quickly appends Videos or Audio files
LinkedIn YouTube Twitter Mail
Powered by Tempera & WordPress.
Welcome

It looks like you are new to the-Automator!

In the top right corner of the page, you can access the welcome guide.