久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

打開隱藏的 Internet Explorer 窗口而沒有獲得焦點

Opening a Hidden Internet Explorer Window without it getting Focus?(打開隱藏的 Internet Explorer 窗口而沒有獲得焦點?)
本文介紹了打開隱藏的 Internet Explorer 窗口而沒有獲得焦點?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我想打開一個隱藏的 Internet Explorer 窗口,但它不會竊取焦點.我有一個 Timer 對象,它每 5 分鐘打開一次 Internet Explorer 以檢查網站是否有更新.問題是每次檢查更新時,它都會從前臺的當前應用程序中竊取焦點.下面是我如何開始這個過程:

I want to open a hidden Internet Explorer window without it stealing focus. I have a Timer object that opens Internet Explorer every 5 minutes to check a website for updates. The problem is every time it checks for updates, it steals focus from the current application in the foreground. Below is how I start the process:

        Process m_Proc = new Process();
        m_Proc.StartInfo.Arguments = String.Format("{0}{1}", "-nomerge ", browserURL);
        m_Proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
        m_Proc.StartInfo.UseShellExecute = true;
        m_Proc.StartInfo.CreateNoWindow = true;
        m_Proc.StartInfo.FileName = String.Format("iexplore.exe");
        m_Proc.Start();

它總是偷走焦點,即使它是隱藏的.我希望它像什么都沒有發生一樣開始,所以用戶可以繼續他們正在做的事情.謝謝.

It always steals focus, even when it is hidden. I want it to start like nothing is happening, so users can continue to work on what they are doing. Thanks.

推薦答案

嘗試通過其 COM 接口自動化 Internet Explorer,而不是顯式創建進程.方法如下.只是不要這樣做 ie.Visible = true 它將保持隱藏狀態.完成后調用 ie.Quit().

Try automating Internet Explorer via its COM interfaces rather than creating a process explicitly. Here's how it can be done. Just don't do ie.Visible = true and it will stay hidden. Call ie.Quit() when done with it.

這篇關于打開隱藏的 Internet Explorer 窗口而沒有獲得焦點?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Is there a C# library that will perform the Excel NORMINV function?(是否有執行 Excel NORMINV 函數的 C# 庫?)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權列表中選擇 x 個隨機元素(無需替換))
Create a summary description of a schedule given a list of shifts(給定輪班列表,創建時間表的摘要描述)
C# Normal Random Number(C# 普通隨機數)
Standard deviation of generic list?(通用列表的標準偏差?)
AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:創建一個 IAwaitable 的類)
主站蜘蛛池模板: 久久中文字幕一区 | 免费看啪啪网站 | 永久看片| 亚洲午夜精品一区二区三区 | 午夜影视 | 亚洲高清视频在线观看 | 久久99成人 | 综合婷婷 | 国产精品永久久久久久久www | 欧美a级网站| 91麻豆产精品久久久久久夏晴子 | 中文字幕视频在线 | 欧美激情第一区 | 亚洲视频一区在线观看 | 日本不卡一区 | 国产成人精品久久二区二区91 | 91精品国产91久久久久青草 | 不卡在线视频 | 亚洲人精品午夜 | 91日韩在线| 亚洲视频第一页 | 欧美精品日韩精品国产精品 | 亚洲一区二区三区高清 | 国产精品成人一区二区 | 免费一级毛片 | 孕妇一级毛片 | 国产精品久久久亚洲 | 亚洲国产精品一区二区久久 | 精精国产xxxx视频在线播放7 | 国产99久久久国产精品下药 | 福利影院在线看 | 91精品国产一区二区三区动漫 | 欧美精品第一页 | 日韩视频在线观看一区二区 | 亚洲精品在线看 | 一级欧美| 色免费看 | 亚洲一区二区三区免费视频 | 亚洲国产成人久久综合一区,久久久国产99 | 日本一本在线 | 最近最新中文字幕 |