تسجيل الدخول

مشاهدة النسخة كاملة : GMail - Can you Trace !



C# Programming
09-01-2009, 01:22 PM
Hi all,

Is there any way to track the GMAIL input values, while COMPOSSING the Mail.

i am trying like bellow but i could not get:


void browser_BeforeNavigate2(object pDisp, ref object URL, ref object Flags, ref object TargetFrameName, ref object PostData, ref object Headers, ref bool Cancel)
{
browser = (SHDocVw.InternetExplorer)pDisp;
mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)browser.Document;

document = (HTMLDocument)doc;
IHTMLElementCollection elcol;

elcol = document.getElementsByTagName("iframe");
foreach (IHTMLElement ielcol in elcol)
{

HTMLIFrame frm = (HTMLIFrame)ielcol;
DispHTMLDocument docfrm = (DispHTMLDocument)((SHDocVw.IWebBrowser2)frm).Document;


IHTMLElementCollection elcolin = docfrm.all;
foreach (IHTMLElement iel in elcolin)
{
if (iel != null)
{
CreateLog(sLogPath, "IHTMLElement" + ":::" + iel.outerText + ":" +iel.outerHTML);
CreateLog(sLogPath, "\r\n -----------------------------------\r\n");
switch (iel.ToString())
{
case "mshtml.HTMLTextAreaElementClass":
mshtml.HTMLTextAreaElementClass tae = (mshtml.HTMLTextAreaElementClass)iel;
if (tae != null)
{
CreateLog(sLogPath, "HTMLTextAreaElementClass" + ":::" + tae.type + ":" + tae.value);
CreateLog(sLogPath, "\r\n -----------------------------------\r\n");
}
break;
}
}
}
}
}


i am trying to take To,CC,BCC,Subject values while sending mail,
Can some one suggest me how to go with...

thanks in advance