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

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

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

問題描述

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

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

它總是偷走焦點,即使它是隱藏的.我希望它像什么都沒有發(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 窗口而沒有獲得焦點?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 個隨機元素(無需替換))
Create a summary description of a schedule given a list of shifts(給定輪班列表,創(chuàng)建時間表的摘要描述)
C# Normal Random Number(C# 普通隨機數(shù))
Standard deviation of generic list?(通用列表的標(biāo)準(zhǔn)偏差?)
AsyncCTP: Creating a class that is IAwaitable(AsyncCTP:創(chuàng)建一個 IAwaitable 的類)
主站蜘蛛池模板: 亚洲精品字幕在线观看 | 国产午夜三级 | 一区二区视频在线播放 | 极品尤物一区二区三区 | www.男人天堂 | 婷久久 | 日韩av不卡在线观看 | 91精品国自产在线观看 | 亚洲精品乱码久久久久 | 日本aaaa | 亚洲美女毛片 | 日韩精品一二三 | 黄色大片视频 | 亚洲精品911 | 毛片aaa| 国产福利在线播放 | 国产三级在线免费观看 | 国产无遮挡又黄又爽又色 | 91黄色免费视频 | 国产一级特黄aaa大片 | 久久国产美女 | 日韩中文字幕一区二区三区 | 午夜一级片| 国产精品96 | 欧美大片91| 黄色影音| 毛片久久 | 福利片国产 | 色综合久久综合 | 少妇性bbb搡bbb爽爽爽欧美 | 国产精品免费一区 | 天天综合久久 | 久久精视频 | 黄色激情视频网站 | 一区在线播放 | аⅴ资源新版在线天堂 | 99视频免费 | 日韩av手机在线 | 天天摸夜夜操 | 国产成人av一区二区三区在线观看 | 中文字幕免费观看 |