Sign in to follow this  
Followers 0
slaughter

Gmail 'Check email from other accounts' speeduper

1 post in this topic

#1 ·  Posted (edited)

Emails if is taken from other sources gmail account some times takes ages to arrive or you have very time to do it by yourself going in option and clicking "Check mail now"

Solution is automated script witch does it for you while your pc is running.

Has one problem

ID of elements 'Check_mail_now' always changing so you have to adjust it, maybe someone can offer solution?

At his moment it clicks on tow other accounts, but you can always add more. :)

 

Sorry for posting maybe in wrong section, it is like an demo but needs some help :) Maybe admins can move topic to help section. Thanks.

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.8.1
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
$url1="https://accounts.google.com/ServiceLogin?service=mail&continue=https://mail.google.com/mail/"
$url2="https://mail.google.com/mail/u/0/?shva=1#settings/accounts"
$email="xxx@gmail.com"
$password="my password"
$check_interval_min="2"
$id_of_Check_mail_now1 = ":f42"
$id_of_Check_mail_now2 = ":f46"



#include <IE.au3>
Local $oUser, $oPass, $oSubmit, $oInput
$oIE = _IECreate ($url1,1,0)
_IELoadWait($oIE)


Local $oForm = _IEFormGetObjByName($oIE, "gaia_loginform")
Local $input_username = _IEFormElementGetObjByName($oForm, "Email")
_IEFormElementSetValue($input_username, $email)
Local $input_userpass = _IEFormElementGetObjByName($oForm, "Passwd")
_IEFormElementSetValue($input_userpass, $password)
ConsoleWrite("form submit1."&@CRLF)
Local $oSubmit = _IEGetObjByName($oIE, "signIn")
_IEAction($oSubmit, "click")
;_IEFormSubmit($oForm)
ConsoleWrite("form submit2."&@CRLF)
_IELoadWait($oIE)
Sleep(4000)
ConsoleWrite("Login complete. Navignating to settings."&@CRLF)
_IENavigate($oIE, $url2)
_IELoadWait($oIE)
Sleep(2000)


While 1
    $oDiv = _IEGetObjById($oIE, $id_of_Check_mail_now1)
    _IEAction($oDiv, "click")
    $oDiv = _IEGetObjById($oIE, $id_of_Check_mail_now2)
    _IEAction($oDiv, "click")
    Sleep($check_interval_min*1000*60)
WEnd
Edited by slaughter

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Similar Content

    • PoojaKrishna
      By PoojaKrishna
      Hi friends,
       
      I want to create a script than can read a gmail inbox to see content of mails from a particular address. I have searched a lot in the forum, there are so many topics related to this but I was not able to get a script that reads mail text. Can anyone please help?
    • unity06
      By unity06
      Hi Forum,
      I currently want to write a script that will download the emails from my gmail account and store them on my hard drive in form of text messages. Text file name will have date followed by title of the email and the email body will be the text body. Then I will write my scripts to monitor and inspect emails and post process the data.
      Anyone can suggest an easy way to achieve this?
      Maybe it has to be done indirectly via first having an email client that tracks my gmail account and downloads emails to hard drive such as Outlook?
      Will be very thankful for any suggestions on how to tackle this.
      Regards
    • lewisg
      By lewisg
      Any suggestions as to how to download, get, or retrieve email from Google's Gmail?  No need to send mail only receive. 
      I thought perhaps JiBE's SSL UDF might work however a reply to a post at his original post says otherwise (Didn't want to hijack his post).
      I have been using "GAM", "GYB", and "GMAIL Backup"(old), all command line inputs. Running them through a AutoIT script using RUN() and RUNWAIT() works somewhat, but has been unreliable. 
       
    • JackWebb
      By JackWebb
      Hi Everyone!
       
      So I use Autoit to automate my logins. Gmail has recently made some changes to their login page that breaks my script. The username goes in okay, but not the password. I can type in the password manually and it's no problem. What I can't understand is how does the browser know the password is not being typed in manually? I tried every trick I could think of (i'm an Autoit noob) to simulate human typing. Using send() raw and slowing down the type rate of the keys. Nothing works, can anyone shed some light on this?
       
      #include <WinAPIShPath.au3> #include <Array.au3> Opt("SendKeyDelay", 25) Opt("SendKeyDownDelay", 25) Send("email@gmail.com", 1) sleep(1500) Send("{enter down}", 0) Send("{enter up}", 0) sleep(1500) Send("password", 1) sleep(1500) Send("{enter down}", 0) Send("{enter up}", 0)  
    • PhoenixXL
      By PhoenixXL
      Remote Gmail UDF


      Working
      It uses the Google atom API to get the Summary of the mail,
      The Summary of the mail is enough to get a direct link or a single function with parameters
      Execute any Function (or Script) and get the Return Values in your E-mail

      Requirements
      Gmail (Email) Account A Remote Computer with Internet Access Representation

      Functions
      You can now use you Gmail account to use Autoit Functions in a remote computer Can execute a function through reading the email. Can Email back the return values of an executed function. The parameter can even be a variable present in the script [see Syntax] Execute a Script through Direct Link. Execute multiple scripts zipped together through Direct Link. Can Email back the PID of the running executables with the scripts. Attach any file and get it in your email. Able to send the multiple attachments zipped together. Writes all the return values in a Log file. No email is executed twice, the Message IDs are stored for this purpose. Future Updates
      Support single line nesting Get the attachment, to execute the script Syntax

      Syntax for Functions
      PXL<FuncName>: (<data type>)<first param part a>+(<data type>)<first param part b>|(<data type>)<secondparam>/PXL

      Colon[:] - Separation of Function Name with the Parameters
      Bar [ | ] - Separation of different parameters
      Plus [+] - To Concatenate Values
      PXL /PXL - The tags where the code is enclosed
      Brackets [ () ] - For specifying the type of the parameter

      DataTypes - Always Preceded by any parameter and are enclosed with brackets

      ; | (s) - String
      ; | (n) - Number
      ; | (f) - Floating Number
      ; | (i) - Integer
      ; | (b ) - Binary
      ; | (v) - Variable
      ; | (h) - Hex
      ; | (m) - macro
      ; | (w) - Handle
      ; | (p) - Pointer


      Syntax for Direct Links
      PXL<DirectLink>^<Type>/PXL

      PXL /PXL - The tags where the code is enclosed
      Caret [ ^ ] - To Separate the Link and the Type
      Type - Either Zip or au3

      DirectLink WebServer
      Some of webservers providing Direct Links
      DropBox [Tested - Recommended]
      Herosh [Tested]*
      FileToLink
      FileDen

      * DirectLink from Herosh changes therefore Example 4 wont work after a while

      Credits
      CaptainClucks - Atom Feed
      Jos - SMTP Mailer
      wraithdu - Zip UDF

      Change Log
      v1.0 - First Release
      v1.1 - Added Script Execution with Zipping Functionality
      v1.2 - Fixed some Minor bugs
      v1.3 - Added RemoteGmail_Startup
      v1.4 - Fixed Compiling Issues
      v1.5 - Added flexibility for execution of scripts from any email.

      The UDF - Download
      The UDF is currently tested on x86
      All Comments ,Queries , Feedback and Advice are welcomed...
      The UDF with the Examples have been compiled in the following Zip
      v1.5 RemoteGmail.7z
      Previous Downloads : 1119

      Regards
      Phoenix XL