iMacros not executing code after long WAIT

Discussions and Tech Support related to the iMacros Google Chrome extension.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
clemente3905
Posts: 3
Joined: Fri Oct 07, 2011 6:23 am

iMacros not executing code after long WAIT

Post by clemente3905 » Fri Oct 07, 2011 6:48 am

Hi all,
this is my first post, so, first of all, congrats for iMacros. I started to use it from short time but it seems very powerful to me.

Then, reason of my visit.

I register a macro in Chrome, then I try to modify it (adding several WAIT instruction) and the problem is that when I try the "basic" macro with, let's say, 10 seconds WAIT everything is fine, but when I start the macro with actual wait period (1800 seconds several times) iMacros seems to go into a loop aftger the first WAIT SECONDS=1800 instruction (the icon in the main address book displays alternatively positive and negative numbers) and it does not execute any line of the code.

I'm using iMacros for Chrome (VERSION BUILD=3520704 RECORDER=CR)
OS is Windows Vista 32 bit, Italian
Chrome is version 14.0.835.202

Then, please find hereafter the macro I used and didn't work. (I tried to attach it, but iim files doesn't work)

Code: Select all

VERSION BUILD=3520704 RECORDER=CR

'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
'@
'@		COMMENT UNTIL YOU START IT
'@
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


'if start is 21.00
'WAIT SECONDS=1800 
'if start is 21.30
'WAIT SECONDS=1800 
'if start is 22.00
'WAIT SECONDS=1800 
'if start is 22.30
'WAIT SECONDS=1800 
'if start is 23.00
'WAIT SECONDS=1800 
'if start is 23.30
'WAIT SECONDS=1800 
'if start is 00.00
'WAIT SECONDS=1800 
'if start is 00.30
WAIT SECONDS=1800 
'if start is 1.00
WAIT SECONDS=1800 
'if start is 1.30
WAIT SECONDS=1800 
'if start is 2.00
WAIT SECONDS=10 

'@@@@@@@@@@@@@@@@@@@@@@@@@
'@
'@	OFFSET, DO NOT MODIFY
WAIT SECONDS=600
'@
'@@@@@@@@@@@@@@@@@@@@@@@@@

'show delle 8 pm aka 2 di notte ITA
URL GOTO=http://getglue.com/tv_shows/big_bang_theory
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/vampire_diaries
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/community
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/charlies_angels
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

'WAIT SECONDS=10
WAIT SECONDS=1800
'show delle 8:30
URL GOTO=http://getglue.com/tv_shows/how_to_be_gentleman
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

'WAIT SECONDS=10
WAIT SECONDS=1800
'show delle 9
URL GOTO=http://getglue.com/tv_shows/greys_anatomy
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/office
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/person_of_interest
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/secret_circle
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

'WAIT SECONDS=10
WAIT SECONDS=1800
'show delle 9:30
'URL GOTO=http://getglue.com/tv_shows/happy_endings
'TAG POS=1 TYPE=DIV ATTR=ID:wrap
'TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
'WAIT SECONDS=10
'URL GOTO=http://getglue.com/tv_shows/raising_hope
'TAG POS=1 TYPE=DIV ATTR=ID:wrap
'TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

'WAIT SECONDS=10
WAIT SECONDS=1800
'show delle 10.00
URL GOTO=http://getglue.com/tv_shows/its_always_sunny_in_philadelphia
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/private_practice
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/mentalist
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in


'WAIT SECONDS=10
WAIT SECONDS=1800
'show delle 10.30
URL GOTO=http://getglue.com/tv_shows/league
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
Thanks for iMacros and (in advance) for your help
clemente3905
Hannes, Tech Support

Re: iMacros not executing code after long WAIT

Post by Hannes, Tech Support » Mon Oct 17, 2011 7:46 am

Thanks for reporting your issue!

However, your macro contains lots of lines that are unrelated to the problem, I guess. Could you cut down your macro to a "minimal example" that still shows the issue? This would help our developers a lot.
clemente3905
Posts: 3
Joined: Fri Oct 07, 2011 6:23 am

Re: iMacros not executing code after long WAIT

Post by clemente3905 » Tue Oct 18, 2011 9:03 am

Here is the macro "as it is intended to work"

Code: Select all

VERSION BUILD=3520704 RECORDER=CR

WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=1800 
WAIT SECONDS=10 

WAIT SECONDS=600
URL GOTO=http://getglue.com/tv_shows/star_wars_clone_wars
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/nikita
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/community
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/charlies_angels
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

WAIT SECONDS=1800
URL GOTO=http://getglue.com/tv_shows/how_to_be_gentleman
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

WAIT SECONDS=1800
URL GOTO=http://getglue.com/tv_shows/dexter
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/supernatural
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/csi_ny
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/secret_circle
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

WAIT SECONDS=1800
URL GOTO=http://getglue.com/tv_shows/happy_endings
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/raising_hope
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

WAIT SECONDS=1800
URL GOTO=http://getglue.com/tv_shows/breaking_bad
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/private_practice
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/mentalist
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in


WAIT SECONDS=1800
URL GOTO=http://getglue.com/tv_shows/league
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/revenge
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in

WAIT SECONDS=1800
URL GOTO=http://getglue.com/tv_shows/blue_mountain_state
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
WAIT SECONDS=10
URL GOTO=http://getglue.com/tv_shows/big_bang_theory
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
Just a few words to explain.

This macro is intended to perform several "check-in"s to different tv-show on the getglue website.
Each check-in block is composed by the following 3 instruction:

Code: Select all

URL GOTO=http://getglue.com/tv_shows/big_bang_theory
TAG POS=1 TYPE=DIV ATTR=ID:wrap
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:http://getglue.com/user/addCheckin ATTR=NAME:submit&&VALUE:Check-in
By changing the url, I can perform check-in to different tv shows.

Check-in MUST be done in a specific time frame (e.g. when the show is airing) so I must add several wait instruction depending on:
- when I launch the macro (all initial WAIT are related to this)
- when subsequent show is airing in a different time slot (all intermediate WAIT are related to this)

The problem I have with this (really basic) code is that sometimes (tipically during the first series of WAIT instruction) the counter start to show positive and negative number and counter never goes to 0. Thus all following instruction were not performed.

PLEASE NOTE: If you try to run a macro substituting huge wait interval (1800 or more) with fewer one (10 seconds) the macro DOES work!

Hope this can help to fix the issue.

Cheers!
Clemente
Hannes, Tech Support

Re: iMacros not executing code after long WAIT

Post by Hannes, Tech Support » Wed Oct 19, 2011 8:32 am

Thank you!
I was able to recreate the issue using the following short example:

Code: Select all

VERSION BUILD=3520704 RECORDER=CR

WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=1800
WAIT SECONDS=10 
The developers are informed. I'll keep you posted.
clemente3905
Posts: 3
Joined: Fri Oct 07, 2011 6:23 am

Re: iMacros not executing code after long WAIT

Post by clemente3905 » Thu Oct 20, 2011 3:41 pm

Thank YOU ALL for iMacros and for improving it.

Cheers,
Clemetne
Post Reply