如何通过代码运行浏览器 [英] how to run a browser through code
本文介绍了如何通过代码运行浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用以下代码来运行浏览器iam
hi i want to run a browser iam using following code
Shell("firefox" & " " & """" & "http://google.com" & """", AppWinStyle.NormalFocus, True, 1)
它给出了未找到的错误文件
it is giving error file not found
推荐答案
尝试使用 ^ ]
要启动默认浏览器,只需调用ShellExecute,如下所示
For launching a default browser you need to just call ShellExecute as shown below
ShellExecute(NULL, "open", "http://www.microsoft.com", NULL, NULL, SW_SHOWNORMAL);
检查此提示/技巧
以编程方式打开Internet浏览器 [
Check this Tip/Trick
Opening the Internet Browser Programmatically[^]
这篇关于如何通过代码运行浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文