求大神帮忙看下哪里出问题了

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: arcticir, tmplinshi

RaisetheBass
Posts: 16
Joined: 08 Jul 2018, 06:17

求大神帮忙看下哪里出问题了

29 Jan 2019, 15:53

Code: Select all

#NoEnv
Loop
{
IE.Visible := True
WinActivate, ahk_class IEFrame
WinWaitActive, ahk_class IEFrame
WinGetTitle, WinTitle, ahk_class IEFrame
wb:=pwb_Get()
loaded := false
While !loaded
    try
    {
        if (wb.document.GetElementByID("wait") != "")
            loaded := true
    Sleep 100
if (wb.document.GetElementsByTagName("dv")[20].innertext) = "Online"
	goto Copy1
	else if (wb.document.GetElementsByTagName("dv")[25].innertext) = "Online"
	goto Copy2
	else if (wb.document.GetElementsByTagName("dv")[30].innertext) = "Online"
	goto Copy3
	else if (wb.document.GetElementsByTagName("dv")[35].innertext) = "Online"
	goto Copy4
	else if (wb.document.GetElementsByTagName("dv")[40].innertext) = "Online"
	goto Copy5
	else if (wb.document.GetElementsByTagName("dv")[70].innertext) = "Offline"
	goto Copy6 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<到这里就直接跳去 next 了  :( 
	else if (wb.document.GetElementsByTagName("dv")[75].innertext) = "Offline"
	goto Copy7
	else if (wb.document.GetElementsByTagName("dv")[80].innertext) = "Offline"
	goto Copy8
	else if (wb.document.GetElementsByTagName("dv")[85].innertext) = "Offline"
	goto Copy9
	else if (wb.document.GetElementsByTagName("dv")[90].innertext) = "Offline"
	goto Copy10
	else if (wb.document.GetElementsByTagName("dv")[123].innertext) = "Online"
	goto Copy11
	else if (wb.document.GetElementsByTagName("dv")[128].innertext) = "Online"
	goto Copy12
	else if (wb.document.GetElementsByTagName("dv")[132].innertext) = "Online"
	goto Copy13
	else if (wb.document.GetElementsByTagName("dv")[137].innertext) = "Online"
	goto Copy14
	else if (wb.document.GetElementsByTagName("dv")[142].innertext) = "Online"
	goto Copy15
	else
	goto Next
}
}
有没有大神可以帮我看下哪里出问题了吖?
为什么if statement跑到第六行就直接跳去next了

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 4 guests