半点优化网 http://www.bdxc.net/
当前位置首页 > 关键词排名> 正文

运行浏览器让它自动输入网址的代码怎么写

2022-06-13 08:45:37 暂无评论 238 关键词排名 浏览器   输入   运行

将以下代码保存到文本,适当修改后,命名为:任意文件名.au3


代码如下:(附解释)


------------------------------------------分割线不要复制---------------------------------------------------------------


Run( C:\Program Files\Internet Explorer\IEXPLORE.EXE)
;-------------------
;-1--运行IE------
;-------------------
WinWaitActive(about:blank - Microsoft Internet Explorer, about:blank)
;---------------------------------------------------------------------------------------------------------------------------
;-2--[about:blank - Microsoft Internet Explorer]是主页标题,[about:blank]是主页,我用的是空白页--
;---------------------------------------------------------------------------------------------------------------------------
ControlSetText(about:blank - Microsoft Internet Explorer, about:blank,Edit1,***.com)
;---------------------------------------------------------------
;-3--[***.com]是要打开的网址--------
;---------------------------------------------------------------
WinWaitActive(about:blank - Microsoft Internet Explorer, ***.com)
;--------------------------------
;-4--激活窗口----------------
;--------------------------------
ControlCommand(about:blank - Microsoft Internet Explorer, ***.com,Edit1,Check, )
;---------------------
;-5--选中窗口-----
;---------------------
send({enter})
;----------------
;-6--回车------
;----------------


------------------------------------------分割线不要复制---------------------------------------------------------------

猜你喜欢