作者ChenRobert (罗伯陈)
看板C_Sharp
标题[问题] 请问C#输入关键字跳到搜寻google搜寻?
时间Sun Jul 18 11:46:17 2021
Process explorer = new Process();
explorer.StartInfo.FileName = "explorer.exe";
explorer.StartInfo.Arguments = @"
http://www.google.com.tw/search?=" +
GetString;
explorer.Start();
请问怎麽跳到google 搜寻页面并且搜寻指定的关键字
我怎麽写都会跳到 我的文件夹
要怎麽修改?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 1.34.233.240 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1626579979.A.10D.html
explorer.StartInfo.Arguments = GetString;
我这样输入跳到网页的时候,会出现
http://aaa/ 旁边多了/ 就不能自己跳到搜索页面了,要怎麽处里
假设我输入aaa,我想要跳到网页,然後跟aaa有关的关键字连结就会出现。
※ 编辑: ChenRobert (1.34.233.240 台湾), 07/18/2021 12:52:51
1F:推 Litfal: 你为何要用Explorer开...FileName直接开网址就好了 07/18 16:01
2F:→ Litfal: 还有你搜寻字串自己再检查一下 有少东西 07/18 16:02
3F:推 jinmin88: 要用c#控制网页行为可以用Selenium library 07/25 02:55
4F:→ jinmin88: 可以下getElementById之类的取到控件再输入值 07/25 02:55