本脚本由oldstone提供,有问题请到私信
webFullLoadFlag(iCordinationX, iCordinationY, pixelColor, Timeout := 100) ;像素法判断网页完全加载
{
StartTime := A_TickCount
Loop
{
PixelGetColor, iColour, iCordinationX, iCordinationY, RGB
if (iColour == pixelColor ) or (A_TickCount - StartTime > Timeout*1000)
{
break
}
else
{
Sleep, 50
}
}
}
scroll2end(Timeout := 100) ;滚动条滚动到最底部
{
iCordination := [A_ScreenWidth - 6, 740] ;坐标值会有变化
iCordinationX := A_ScreenWidth - 6
iCordinationY := iCordination[2]
StartTime := A_TickCount
PixelGetColor, iColour, iCordinationX, 100, RGB ;坐标值会有变化
if (iColour != 0xC1C1C1 )
{
iFlag := true
}
else
{
Loop
{
PixelGetColor, iColour, iCordinationX, iCordinationY, RGB
if (iColour == 0xA8A8A8 ) or (A_TickCount - StartTime > Timeout*1000)
{
break
}
else
{
Sleep, 1*1000
MouseClick, Left, iCordinationX, iCordinationY
}
}
}
}
#k::
{
Run, "https://www.autohotkey.com/boards/viewforum.php?f=76&start=100"
webFullLoadFlag(1000, 635, "0x3F627F" )
Sleep, 5000
scroll2end()
return
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。