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

打開隱藏的 Internet Explorer 窗口而沒有獲得焦點(diǎn)

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

問題描述

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

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();

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

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,而不是顯式創(chuàng)建進(jìn)程.方法如下.只是不要這樣做 ie.Visible = true 它將保持隱藏狀態(tài).完成后調(diào)用 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.

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

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

相關(guān)文檔推薦

Is there a C# library that will perform the Excel NORMINV function?(是否有執(zhí)行 Excel NORMINV 函數(shù)的 C# 庫?)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權(quán)列表中選擇 x 個(gè)隨機(jī)元素(無需替換))
Create a summary description of a schedule given a list of shifts(給定輪班列表,創(chuàng)建時(shí)間表的摘要描述)
C# Normal Random Number(C# 普通隨機(jī)數(shù))
Standard deviation of generic list?(通用列表的標(biāo)準(zhǔn)偏差?)
AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:創(chuàng)建一個(gè) IAwaitable 的類)
主站蜘蛛池模板: 亚洲成人综合社区 | 久久国产区| 国产精品污www一区二区三区 | 国产亚洲一区精品 | 日韩欧美中文字幕在线观看 | 久久亚洲一区二区三区四区 | 成人av网站在线观看 | 国产精品美女一区二区三区 | 成人国产精品久久久 | 日韩成人av在线 | 天天搞天天搞 | 亚洲人成一区二区三区性色 | 亚洲一级毛片 | 久久999| 欧洲精品一区 | 黄色免费网站在线看 | 黄色香蕉视频在线观看 | 亚洲免费视频在线观看 | 牛牛热在线视频 | 亚洲高清在线观看 | 黄色av一区 | www久久久| 国产一级片91 | 成人免费在线 | 亚洲色图插插插 | 亚洲国产精品一区二区三区 | 国产高清精品在线 | 欧美一区在线视频 | 在线一区二区三区 | 日韩a v在线免费观看 | 美女艹b | 精品99久久久久久 | 久久男人天堂 | 午夜久久久久 | 亚洲看片网站 | 久久aⅴ乱码一区二区三区 91综合网 | 欧美a区 | 三级黄色大片网站 | 二区中文| 欧美日本高清 | 中文字幕 亚洲一区 |