从 iMacros 9 升级后,iMacros 10 宏已停止工作
iMacros 10 macro has stopped working after upgrade from iMacros 9
我有一个使用 (Excel VBA) 的宏来完成发票申请。该宏会在多个不同的屏幕上打开一张发票并提取信息。然后关闭发票,在下一个屏幕上查找单词 "reservation"。一旦找到“预订”,它应该打开下一张票。
使用 IE 8 / iMacros 9,宏没有遇到任何问题。然而,最近,我们升级到 IE 11 和 iMacros 10。现在当用户 运行 宏时,他们可以得到 "iMacros has stopped working. A problem caused the program to stop working correctly. Please close the program." 消息。
以下是宏查找单词 "reservation" 的循环。这似乎是错误/问题发生的地方。
lCnt = 0
vpagehead = ""
Do Until InStr(1, vpagehead1, "Reservation Number") > 0 Or InStr(1, vpagehead1, "servation:") > 0 Or lCnt = 25
IM = ""
IM = "CODE:"
IM = IM + "TAB T=1" + vbNewLine
IM = IM + "TAB CLOSEALLOTHERS" + vbNewLine
IM = IM + "FRAME NAME=ReservationDetailFrame" + vbNewLine
IM = IM + "SET !TIMEOUT_STEP 10" + vbNewLine
IM = IM + "TAG POS=11 TYPE=TD ATTR=* EXTRACT=TXT" + vbNewLine
IM = IM + "WAIT SECONDS=1" + vbNewLine
iret = iim1.iimPlay(IM)
vpagehead1 = iim1.iimGetLastExtract
lCnt = lCnt + 1
Loop
有没有人看出此代码会导致导致 iMacros 关闭的问题的任何原因?
感谢您的帮助.........
我认为问题不在代码中。正如您所说,代码工作正常,所以唯一改变的是浏览器和 iMacro 的版本。
IE11 更新可能破坏了您的宏:
http://imacros.net/microsoft-update-for-ie11-kb3025390-breaks-tag-command-in-imacros-for-ie
If you must use iMacros with IE11, another workaround is to uninstall
Microsoft update KB3025390. This is a non-security related update, so
uninstalling it will not put IE in any greater risk.
我有一个使用 (Excel VBA) 的宏来完成发票申请。该宏会在多个不同的屏幕上打开一张发票并提取信息。然后关闭发票,在下一个屏幕上查找单词 "reservation"。一旦找到“预订”,它应该打开下一张票。
使用 IE 8 / iMacros 9,宏没有遇到任何问题。然而,最近,我们升级到 IE 11 和 iMacros 10。现在当用户 运行 宏时,他们可以得到 "iMacros has stopped working. A problem caused the program to stop working correctly. Please close the program." 消息。
以下是宏查找单词 "reservation" 的循环。这似乎是错误/问题发生的地方。
lCnt = 0
vpagehead = ""
Do Until InStr(1, vpagehead1, "Reservation Number") > 0 Or InStr(1, vpagehead1, "servation:") > 0 Or lCnt = 25
IM = ""
IM = "CODE:"
IM = IM + "TAB T=1" + vbNewLine
IM = IM + "TAB CLOSEALLOTHERS" + vbNewLine
IM = IM + "FRAME NAME=ReservationDetailFrame" + vbNewLine
IM = IM + "SET !TIMEOUT_STEP 10" + vbNewLine
IM = IM + "TAG POS=11 TYPE=TD ATTR=* EXTRACT=TXT" + vbNewLine
IM = IM + "WAIT SECONDS=1" + vbNewLine
iret = iim1.iimPlay(IM)
vpagehead1 = iim1.iimGetLastExtract
lCnt = lCnt + 1
Loop
有没有人看出此代码会导致导致 iMacros 关闭的问题的任何原因?
感谢您的帮助.........
我认为问题不在代码中。正如您所说,代码工作正常,所以唯一改变的是浏览器和 iMacro 的版本。
IE11 更新可能破坏了您的宏:
http://imacros.net/microsoft-update-for-ie11-kb3025390-breaks-tag-command-in-imacros-for-ie
If you must use iMacros with IE11, another workaround is to uninstall Microsoft update KB3025390. This is a non-security related update, so uninstalling it will not put IE in any greater risk.