Here's my VFP version....works, but using "Sleep" isn't very elegant.
DECLARE Sleep IN Win32API INTEGER nMilliseconds
ie=CREATEOBJECT("InternetExplorer.Application")
ie.Navigate("https://www.google.com/accounts/Login?continue=http://www.google.com/")
DO WHILE ie.busy
sleep(1000)
endd
doc=ie.Document
sleep(5000)
doc.forms[0].Email.value="[email protected]"
doc.forms[0].Passwd.value="your_password"
doc.forms[0].submit()
ie.Navigate("https://mail.google.com/mail/?hl=en&shva=1#inbox")
ie.Visible=.t.
In fact, the sleep(5000) may be a little rushed. There is a way to query
whether IE is busy or finished...not sure "id.busy" is it.
Seems that you can't log in directly to Gmail, at least I've had no luck
doing so. So, login to Google, then navigate to Gmail.
Mike
-------- Original Message --------
Subject: Re: VFP login to Gmail
From: Mike Copeland <[email protected]>
To: [email protected]
Date: 8/22/2011 9:14 PM
Here's a script that uses Wscript to log in to Google, using Gmail
account parameters.
http://joewong.blogspot.com/2007/08/automatic-login-to-google-with-wscript.html
I'm going to give it a try...I'll let you know if it works out (from VFP).
Mike
-------- Original Message --------
Subject: Re: VFP login to Gmail
From: Richard Quilhot<[email protected]>
To: [email protected]
Date: 8/22/2011 8:11 PM
Maybe you can adapt the code from this website:
http://qtp4free.blogspot.com/2010/07/write-script-to-login-in-to-gmail.html
Rick Q
[email protected]
On Mon, Aug 22, 2011 at 6:01 AM, Sytze de Boer<[email protected]> wrote:
> I want my app to log in to Gmail with a single line
> Something like
> do gmailogin with "myuseraccount","mypassword"
>
> Is this possible?
>
>
> --
> Regards
> Sytze de Boer
> Kiss Software
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.