aiaiask.com©

开花即结果 提问即答案

用vbs在网页每20秒点击一下元素
原始问题:

用vbs在网页每20秒点击一下元素

您可以使用下面的代码来实现:

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.Navigate "http://www.example.com"
Do While objIE.ReadyState <> 4

WScript.Sleep 20000 'Wait 20 seconds before clicking the element 
Set elements = objIE.Document.getElementsByTagName("input") 

For Each element In elements 

    If element.Type = "submit" Then 'Check if the element is a submit button and click it 

        element.Click()  

    End If  

Next  

Loop

用vbs在网页每20秒点击一下元素
https://www.aiaiask.com/ask/24623.html
AI / 模型Siliconflow
时间 / DATEMay 13, 2023, 2:51 PM
语言zh-CN
IP / 区域江苏 南京