private void VBACsEXWB_ProcessUrlAction(object sender, ProcessUrlActionEventArgs e)
 {
     if (e.urlAction == URLACTION.SCRIPT_RUN)
     {
         m_ScriptStartTimepoint = DateTime.Now;
     }
     else if (e.urlAction == URLACTION.ACTIVEX_RUN)
     {
         if (e.context == ms_guidFlash && (!m_IsFlashEnable))
         {
             e.handled   = true;
             e.urlPolicy = URLPOLICY.DISALLOW;
         }
     }
 }
Exemple #2
0
 private void WebBrower_ProcessUrlAction(object sender, ProcessUrlActionEventArgs e)
 {
     if (e.urlAction == URLACTION.SCRIPT_RUN)
     {
         //m_ScriptStartTimepoint = DateTime.Now;
         //Logger.Log(string.Format("ProcessUrlAction脚本开始执行,Url:{0},UrlAction{1},UrlPolicy:{2},Context:{3}", e.url, e.urlAction, e.urlPolicy, e.context));
     }
     else if (e.urlAction == URLACTION.ACTIVEX_RUN)
     {
         if (e.context == ms_guidFlash)
         {
             e.handled   = true;
             e.urlPolicy = URLPOLICY.DISALLOW;
             //Logger.Log(string.Format("ProcessUrlAction,Url:{0},UrlAction{1},UrlPolicy:{2},Context:{3}", e.url, e.urlAction, e.urlPolicy, e.context));
         }
     }
 }