andrewr wrote:Mr. chivracq, I have already tried your both solutions. And I'm so sorry maybe my question above with no detail information.
The SUBMIT Button does not appear spontaneously, it has to refresh the page in line05
And if this is tagged (clicked), a new page will be loaded in the same tab, and I should tag in this new page again. And so on....
Here is the update :
I set !TIMEOUT_STEP = 0
Code: Select all
01. VERSION BUILD=8970419 RECORDER=FX
02. SET !ERRORIGNORE YES
03. SET !TIMEOUT_PAGE 499
04. SET !TIMEOUT_STEP 0
05. URL GOTO=https:.....
06. TAG POS=1 TYPE=BUTTON ATTR=TXT:SUBMIT <This button only appears randomly by refreshing page in line 04>
07. TAG POS=1 TYPE=BUTTON .... <This page only appears if the TAG in line 06 completed>
08. TAG POS=1 TYPE=BUTTON ... <This page only appears if the TAG in line 07 completed>
09. TAG POS=1 TYPE=IMG .... <Same as above>
10. TAG POS=1 TYPE=IMG .... <Same as above>
11. ... (another tag... and so on...)
I play loop with this script, the looping is fast -and line03 makes the page refresh everytime it loops (depends on my internet speed). But just like you wrote before this won't do anything for line 07-11 even if the SUBMIT button appears.
My script should TAG successfully automatic from line 07-11 if the SUBMIT button is already successfully 'clicked' .
Ah OK..., I thought your Script was working now, ah-ah...!
But OK, this one should work, I would think..., even if your "!TIMEOUTPAGE=499" is not very "helpful", I would think, even if you have a very bad Internet Connection..., try this one with a bit "more standard" Values:
Code: Select all
01. VERSION BUILD=8970419 RECORDER=FX
02. SET !ERRORIGNORE YES
03. SET !TIMEOUT_PAGE 10
04. SET !TIMEOUT_STEP 1
05. URL GOTO=https:.....
06. TAG POS=1 TYPE=BUTTON ATTR=TXT:SUBMIT <This button only appears randomly by refreshing page in line 04>
SET !TIMEOUT_STEP 0
07. TAG POS=1 TYPE=BUTTON .... <This page only appears if the TAG in line 06 completed>
08. TAG POS=1 TYPE=BUTTON ... <This page only appears if the TAG in line 07 completed>
09. TAG POS=1 TYPE=IMG .... <Same as above>
10. TAG POS=1 TYPE=IMG .... <Same as above>
11. ... (another tag... and so on...)
And you might still need to "tune" the '!TIMEOUT_PAGE', your previous "=1" was very-very short indeed, "standard" Values are usually in the Range [30-60] (60 sec is the Default anyway). It only needs to be high enough for your Button to appear, I guess the Page probably doesn't need to load completely...
But it all depends on your Internet Connection, on the Page of course and how and when this Button will appear, and on the (expected) "Behaviour" associated with the Lines [07-11] 'TAG' Statements as well...
andrewr wrote:I change set !TIMEOUT_STEP = 600 in line 04
This doesn't work, because the page is not refresh so the SUBMIT button won't appear.
Then I install auto-refresh addons.
But this won't help either, if the page has refreshed and the SUBMIT is automatically clicked, then my script keeps playing TIMEOUT_STEP because the tag in the next line.07 not found (the page has refresh to earlier page by auto-refresh addons).
So is there any solution for my case?
Thanks Mr.chivracq
Yeah, well the "!TIMEOUT_STEP=600" would only be for the 'SUBMIT' Button of course, then you need to set it back to "1" or "0"...
But hum, this "solution" was indeed meant for if the Button would appear "spontaneously", it might not work indeed if you need to refresh the Page..., and the 'Auto Refresh' was "just an Idea", ah-ah...!, it might indeed interfere with the Statements for Lines [07-11]...
This one ('Auto Refresh') is linked to the Tab it's been activated on, it's not linked to the URL, and it has no Shortcut to enable/disable it (or you could have tried to disable it with the 'EVENT' Mode), maybe you can find another Add-on that can be toggled ON/OFF from a Keyboard Shortcut, or that be linked to specific URL's or with a Blacklist where you could exclude the 2nd URL coming after clicking on your Button (if the URL changes, of course...!).
"So is there any solution for my case?"
=> Tja...!, I don't know, I can only give you some "generic" Advice/Ideas as you didn't post the URL (which probably requires some Login anyway), then I can't "study" the Behaviour of this Site/Page and your "sneaky" Button, ah-ah...!
Hum, and you've carefully obfuscated/anonymized your Script, then I guess it is probably for a Game/Competition, but I usually refrain from helping with (Cheating on) Games, ah-ah...!
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...