如何读取输入的浏览器地址栏URL /文本并将其记录到文本文件中。 [英] How to read the browser address bar url/text typed in and log it to text file.

查看:109
本文介绍了如何读取输入的浏览器地址栏URL /文本并将其记录到文本文件中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我的问题:

我正在尝试用C#创建一个控制台应用程序来读取地址栏浏览器(IE,Chrome,Firefox,Opera)并将文本/ URL记录到文本文件中。代码应始终保持运行,并应记录已在浏览器地址栏中键入的所有文本/ URL。它应该只是读取每个新传入标签的地址栏,并将所有文本或网址记录到文本文件。我搜索了很多小时,但没有找到任何适合我的情况。请原谅我,如果有任何文章我没看到。我正在使用C#和ASP.Net。请尽快帮助我,因为我需要它。对你的帮助表示感谢。在此先感谢所有人。请帮忙。

解决方案

几乎所有使用UIAutomation的浏览器都是这样做的。一点点搜索确实有助于将您的所有查询都放在地上。先尝试自己,我相信你会在短时间内完成它。如果您仍然需要任何帮助,那么CodeProject真的是一种节省生命的组合方式。干杯:)

Hi All,

My Question:
I am trying to make a console application in C# that will read the address bar of the browser(IE, Chrome, Firefox, Opera) and will log the text/url to a text file. The code should keep running all the time and should record all the text/url that has been typed in address bar of the browser. It should simply read the address bar with every new incoming tab and log all the text or urls to the text file.I searched a lot for hours but didnt found any that suits my case.Excuse me if there present any article which i didnt see. I am using C# and ASP.Net. Please do help me as i need it asap. Your help will be greatly appreciated. Thanks all in advance. Please help.

解决方案

I did it for almost all the browsers using UIAutomation. A little search really helps to put all your queries down the ground. Try urself first and i am sure u will get it done within no time. If still you need any help then CodeProject really comes as a way of life saving combo. Cheers:)


这篇关于如何读取输入的浏览器地址栏URL /文本并将其记录到文本文件中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆