IMacro autoClick on IMG没有转到完整网址

时间:2015-08-01 06:36:17

标签: image url click imacros

我正在使用此功能自动点击网页中的图片,重定向到另一个网址:

TAG POS=1 TYPE=DIV ATTR=ID:desc_1
WAIT SECONDS=1
TAG POS=1 TYPE=IMG ATTR=ID:i1

网址格式为:“http://www.example.com/v/?a=l&l=AlphaNumericCode&vl=AlphaNumericCode

遗憾的是,新标签页中显示的结果网址没有“& vl = AlphaNumeric Code”,即只有第一部分(“http://www.example.com/v/?a=l&l=AlphaNumericCode”)在地址栏中可见。

示例(html代码):

<div style="font-size:11px;color:#888;padding:2px;"id="desc_1">
:::::::::Update Daily :::::::: ::::::::Payment Proofs ::::::&nbsp;
</div>

<div id="da1b" style="display: block; height: 68px;" onclick="clr('1');ul=0">
    <div id="da1d" style="position:absolute;text-align:center;font-size:20px;font-weight:bold;color:#ccc;width:190px;height:68px;vertical-align:middle">
        Click the red dot
    </div>
    <span id="da1c" style="position: absolute; z-index: 9; padding-left: 72px;">
        <a href="http://www.Example.com/v/?a=l&amp;l=E33B0EEC45F2BF7E5294ACA2AC2D712917B2EC3087A3CD8EA25F698333421BE268EED8D388B36093F2C85D0662AD8A25340DA2F1735B2F01ECBC391BBA0B133B&amp;vl=E806723A7D7E3DD2D4FA3C72276FDB26388EF3130661ED70820B0BA781FB3F7FC462ADFB2736AEA7BD66A07DD6FCB59AF3F0629970E687A1" id="l1" target="_blank" onkeydown="return false;" tabindex="-1" onfocus="blur()" oncontextmenu="return false;" onclick="if((ul*1)<10) jQuery.ajax({url: '/v/h/'});">
          <img src="http://img.Example.com/imagens/badge_a1.gif" style="z-index: -99; margin-top: 32px;" id="i1" onclick="gg[1]=1;" height="16" border="0" width="16"></img>
        </a>
    </span>
</div>

手动点击的结果:

http://www.Example.com/v/?a=l&l=E33B0EEC45F2BF7E5294ACA2AC2D712917B2EC3087A3CD8EA25F698333421BE268EED8D388B36093F2C85D0662AD8A25340DA2F1735B2F01ECBC391BBA0B133B&vl=E806723A7D7E3DD2D4FA3C72276FDB26388EF3130661ED70820B0BA781FB3F7FC462ADFB2736AEA7BD66A07DD6FCB59AF3F0629970E687A1

使用IMacro的结果:

http://www.Example.com/v/?a=l&l=E33BOEEC45F2BF7E5294ACA2AC2D712917B2EC3O87A3CD8EA25F698333421BE268EED8D388B36O93F2C85DO662AD8A2534O2A2F1735B2FO1ECBC391BBAOB133B

可能是什么问题?有什么建议?提前谢谢。

2 个答案:

答案 0 :(得分:0)

我保存了您的示例,已记录并且可以在整个链接中使用

VERSION BUILD=8920312 RECORDER=FX
TAB T=1
URL GOTO=file:///C:/Users/user/Desktop/New%20Text%20Document.html
TAG POS=1 TYPE=IMG ATTR=ID:i1
TAB T=2

尝试使用FireFox?

答案 1 :(得分:0)

也许这段代码永远有效:

timer = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: Selector("Counting"), userInfo: nil, repeats: true)

func Counting(){
    timerCount += 1
    tcSec = (timerCount % 3600 ) % 60
    tcMin = (timerCount % 3600) / 60
    tcHour = (timerCount / 3600)
    let strSec = String(format: "%02d", tcSec)
    let strMin = String(format: "%02d", tcMin)
    let strHour = String(format: "%02d", tcHour)
    totalTime.text = "\(strHour):\(strMin):\(strSec)"

    if isRunning == true {
        if runCounter != 0 {
            runCounter -= 1
            tcSec = (runCounter % 3600 ) % 60
            tcMin = (runCounter % 3600) / 60
            tcHour = (runCounter / 3600)
            let strSec = String(format: "%02d", tcSec)
            let strMin = String(format: "%02d", tcMin)
            let strHour = String(format: "%02d", tcHour)
            timerLabel.text = "\(strHour):\(strMin):\(strSec)"
        } else {
            isRunning = false
            activityLabel.text = "Walk Time Left"
            playWalkSound()
            runCounter = runMax
                                        }}
    else {
        if walkCounter != 0 {
            walkCounter -= 1
            tcSec = (walkCounter % 3600 ) % 60
            tcMin = (walkCounter % 3600) / 60
            tcHour = (walkCounter / 3600)
            let strSec = String(format: "%02d", tcSec)
            let strMin = String(format: "%02d", tcMin)
            let strHour = String(format: "%02d", tcHour)
            timerLabel.text  = "\(strHour):\(strMin):\(strSec)"

        } else {

            isRunning = true
            activityLabel.text = "Run Time Left"
            playRunSound()
            walkCounter = walkMax
        }}

}

(而不是SET !EXTRACT_TEST_POPUP NO TAG POS=1 TYPE=A ATTR=ID:l1 EXTRACT=HREF TAB OPEN TAB T=2 URL GOTO={{!EXTRACT}} 。)