Search found 12 matches

by pmwfilm
Fri Aug 19, 2011 10:02 pm
Forum: iMacros for Firefox
Topic: !TIMEOUT_PAGE stops the page from loading?
Replies: 2
Views: 738

!TIMEOUT_PAGE stops the page from loading?

I just noticed some odd things happening in my automation. I have !TIMEOUT_PAGE set to 10. If the page doesn't load in 10 sec it goes to the next tab and comes back to it later to retry. But what i'm noticing is when the 10 sec timeout is reached the page stops loading completely. I just want it to ...
by pmwfilm
Tue Aug 16, 2011 8:19 am
Forum: iMacros for Firefox
Topic: Loop script until...
Replies: 22
Views: 8305

Re: Loop script until...

Ok great, lets try this. var pokLevel = null; while (pokLevel >=50<=100) { iimPlay("CODE: TAG POS=1 TYPE=IMG ATTR=SRC:http://static.pokemonvortex.org/images/maps/arrows/arrowup.gif"); iimPlay("CODE: TAG POS=1 TYPE=P ATTR=TXT:Level:* EXTRACT=TXT"); pokLevel = iimGetLastExtract (); } alert("Encountere...
by pmwfilm
Tue Aug 16, 2011 2:10 am
Forum: iMacros for Firefox
Topic: Loop script until...
Replies: 22
Views: 8305

Re: Loop script until...

I don't have an account so I can't see any of that. Just record a macro where you click the button and then click the number that you are trying to extract and post it and im sure we can figure this out.
by pmwfilm
Tue Aug 16, 2011 2:05 am
Forum: iMacros for Firefox
Topic: If Then Else using Javascript
Replies: 3
Views: 1269

Re: If Then Else using Javascript

Hey thanks Tom. I actually did finally figure that out myself after about an hour of staring at it. Those are the kinds of mistakes that make you roll your eyes at your own stupidity. :roll:
by pmwfilm
Mon Aug 15, 2011 3:12 am
Forum: iMacros for Firefox
Topic: Loop script until...
Replies: 22
Views: 8305

Re: Loop script until...

Ok a few different problems her. First you have to define extracted before you go into the while loop (my fault for not putting that in my code). Second, line 4 is a mess and im not exactly sure what you are trying to do. Third, anything in the iimPlay() has to be on one line. Use \n to change lines...
by pmwfilm
Sat Aug 13, 2011 11:50 pm
Forum: iMacros for Firefox
Topic: Loop script until...
Replies: 22
Views: 8305

Re: Loop script until...

T?hat is going to require a batch list in Javascript. iMacros does not have conditional statements. you are looking at something like this... while (extracted >=1<=10) { iimPlay("CODE: insert the imacro code for clicking the button here") iimPlay("CODE: insert iMacros code fro text area you are trti...
by pmwfilm
Fri Aug 12, 2011 9:27 pm
Forum: iMacros for Firefox
Topic: Switching tabs in Firefox
Replies: 5
Views: 9829

Re: Switching tabs in Firefox

This solves so many of my issues.
I have been searching for this solution for days.
Thank you hwjourney. You are my hero. :D +1 Awesomeness
by pmwfilm
Fri Aug 12, 2011 9:25 pm
Forum: iMacros for Firefox
Topic: Return an Error and Get Back to TAB 1
Replies: 2
Views: 1574

Re: Return an Error and Get Back to TAB 1

After days of searching the web it turns out its sooooo simple.

Code: Select all

gBrowser.tabContainer.advanceSelectedTab(1, true);
Apparently this can be done with XUL (https://developer.mozilla.org/en/Code_s ... active_tab).
Thank you hwjourney. You are my hero. :D +1 Awesomeness
by pmwfilm
Fri Aug 12, 2011 5:19 pm
Forum: iMacros for Firefox
Topic: Problem with special characters
Replies: 2
Views: 538

Re: Problem with special characters

That is strange. It would help if we could see your code and the site you are using it on. Im guessing it is a problem with the specific text input you are trying to fill. First try this test. TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:http://www.iopus.com/sitesearch/results.htm ATTR=NAME:q CONTENT=Cigüe...
by pmwfilm
Fri Aug 12, 2011 9:33 am
Forum: iMacros for Firefox
Topic: Return an Error and Get Back to TAB 1
Replies: 2
Views: 1574

Return an Error and Get Back to TAB 1

I have a function that checks to see if I am being asked for a captcha. I want the macro to return an error to the js if condition if the element is not found. If the element is found it should throw "Death by Captcha"; and exit the script. The problem is I need to return to TAB T=1 before the macro...
by pmwfilm
Wed Aug 10, 2011 6:50 pm
Forum: iMacros for Firefox
Topic: If Then Else using Javascript
Replies: 3
Views: 1269

Re: If Then Else using Javascript

I found a way to make it work. I'm not quite sure why this way works, but I hope it will help others with the same issue.
It's amazing what you can accomplish when you don't sleep for about 30 hours. :shock:

Code: Select all

{
if (iimPlay(checktxt) < 1) {
  s = 0;
}
else {
  s = 1;
  }
}
iimDisplay(s)
by pmwfilm
Wed Aug 10, 2011 4:18 am
Forum: iMacros for Firefox
Topic: If Then Else using Javascript
Replies: 3
Views: 1269

If Then Else using Javascript

I know this has been covered in other discussions, but i'm just not getting the answers i'm looking for. I am trying to make a simple if else operation work using javascript and a macro. ret = iimPlay("checktxt"); if (ret = 1) { s = "1" }else { s = "0" }; iimDisplay (s); checktxt is a checkpoint to ...