Automatic login in googlemail

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
santhosh
Posts: 41
Joined: 02 Aug 2010 05:10

Automatic login in googlemail

#1 Post by santhosh » 04 Nov 2010 02:25

hi ghost/agerman

set a = createobject("wscript.shell")
a.run "https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fhl%3Den%26tab%3Dwm%26ui%3Dhtml%26zy%3Dl&bsv=1eic6yu9oa4y3&scc=1&ltmpl=default&ltmplcache=2&hl=en"
wscript.sleep(5000)
a.sendkeys("username")
a.sendkeys chr(9)
wscript.sleep(7000)
a.sendkeys("password")
a.sendkeys "{Enter}"
call msgbox("Done")
wscript.quit



probem is that... if some other window is active at that time the username and password is pasted there...can anyone suggest how to solve this

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: Automatic login in googlemail

#2 Post by orange_batch » 11 Nov 2010 05:39

Well, you could just get WebMail Notifier for Firefox. Checks for new mail, has auto-login.

Post Reply