Search found 118 matches

by siniy
Sat Jan 25, 2014 5:08 pm
Forum: iMacros for Firefox
Topic: [solved] Conditional statement
Replies: 2
Views: 584

Re: Conditional statement

Code: Select all

PROMPT "Buy (B) or Sell (S) :" !VAR1 "B"
SET !VAR2 EVAL("var s=\"{{!VAR1}}\"; if(s == \"A\"){\"01\";} else {\"02\"};")
PROMPT {{!VAR2}}
by siniy
Mon Dec 16, 2013 12:39 pm
Forum: iMacros for Firefox
Topic: Extend Imacros with new commands?
Replies: 13
Views: 9878

Re: Extend Imacros with new commands?

I'm not aware about extending commands. But we can access page DOM with javascript interface. If you run this script on this page it will search word "javascript" on this forum. I think I saw somebody here using external libs like jQuery in his script. window.document.getElementById("search_keywords...
by siniy
Thu Oct 10, 2013 12:46 pm
Forum: iMacros for Firefox
Topic: iMacro auto stop from playing,
Replies: 3
Views: 1065

Re: iMacro auto stop from playing,

I had imacros stuck on complex websites. What helped me was to open an empty tab and waiting there. Then return to my tab. So whenever you use WAIT command. Try instead of WAIT SECONDS=10 this, open empty tab, wait your time on this empty tab, then return to you first tab TAB OPEN TAB T=2 WAIT SECON...
by siniy
Fri Sep 07, 2012 2:23 pm
Forum: iMacros for Firefox
Topic: downloading script
Replies: 3
Views: 728

Re: downloading script

I use http://jdownloader.org to download from filesharing websites. It supports http://www.embedupload.com too.
by siniy
Sun Aug 26, 2012 11:35 am
Forum: iMacros for Firefox
Topic: Getting an error code rather than text
Replies: 1
Views: 523

Re: Getting an error code rather than text

http://wiki.imacros.net/iimPlay%28%29
iimPlay returns the error code.

Code: Select all

...
iret = iimPlay(macro);
alert(iret)
by siniy
Sun Aug 26, 2012 11:26 am
Forum: iMacros for Firefox
Topic: SAVEAS does not work from js
Replies: 2
Views: 713

Re: SAVEAS does not work from js

You have to mirror the slashes.

Code: Select all

var save;
save =  "CODE:";
save +=  "set !extract {{j}}" + "\n";
save +=  "add !extract <sp>Found!" + "\n";
save +=  "SAVEAS TYPE=EXTRACT FOLDER=C:\\data\\ FILE=compare.txt" + "\n";
iimPlay(save);
by siniy
Sun Aug 26, 2012 11:20 am
Forum: iMacros for Firefox
Topic: Values
Replies: 17
Views: 4379

Re: Values

Add wildcard to the beginning as well.

Code: Select all

*ontinue*
by siniy
Sat Aug 04, 2012 9:03 pm
Forum: iMacros for Firefox
Topic: Using "IF" Command Help!
Replies: 1
Views: 547

Re: Using "IF" Command Help!

You script looks good. Imacros language doesn't have "IF" command.
However, you can use Javascript Scripting Interface http://wiki.imacros.net/iMacros_for_Fir ... _Interface.
Actually you can't write any decent imacros script without external scripting interface.
by siniy
Sat Aug 04, 2012 8:57 pm
Forum: iMacros for Firefox
Topic: Extract a first number from text
Replies: 1
Views: 606

Re: Extract a first number from text

In my opinion "match" will be better here.

Code: Select all

var MyStr = "Test 11 its 22 imacros 33 script";
var num = MyStr.match(/\d+/);
if(num!==null)
	{
		alert(num[0]);
	}
	else
	{
		alert("No numbers found");
	}
by siniy
Wed Aug 01, 2012 8:32 am
Forum: iMacros for Firefox
Topic: Doesn't work on textarea
Replies: 3
Views: 12994

Re: Doesn't work on textarea

I can't say it's a bug. In these rich text editors textarea is handled by javascript. So you can't edit textarea with usual firefox imacros commands. Some text editors have "HTML" button. It pops up standard textarea. You can use this with imacros. Another trick is to use javascript. URL GOTO=http:/...
by siniy
Tue Jul 17, 2012 2:54 am
Forum: iMacros for Firefox
Topic: Looped imacros breaks on every few loops
Replies: 2
Views: 893

Re: Looped imacros breaks on every few loops

Some websites give me "forever red bar" too. I'm fighting it by opening and switching to and waiting on the second TAB. Sometimes adblock/NoScript helps. Try this way. VERSION BUILD=7401110 RECORDER=FX SET !TIMEOUT_STEP 0 SET !ERRORIGNORE YES SET !LOADCHECK NO TAB T=1 URL GOTO=http://www.url1-edited...
by siniy
Mon Jul 16, 2012 10:35 am
Forum: iMacros for Firefox
Topic: cant't submit
Replies: 2
Views: 1722

Re: cant't submit

Replace the last row with:

Code: Select all

TAG POS=1 TYPE=* ATTR=ID:postsubmit
by siniy
Thu Jun 28, 2012 9:58 pm
Forum: iMacros for Firefox
Topic: Change font defaults in Macro Editor
Replies: 2
Views: 564

Re: Change font defaults in Macro Editor

I use notepad++ as editor, with imacros code highlighting.
http://forum.imacros.net/viewtopic.php?f=2&t=4828
by siniy
Tue Jun 26, 2012 5:23 am
Forum: iMacros for Firefox
Topic: Simple Hourly Automation?
Replies: 2
Views: 649

Re: Simple Hourly Automation?

do{ //Create sleep var, and set it to 1 hour iimSet("sleep",3600) var macro; macro = "CODE:"; macro += "URL GOTO=http://google.com" + "\n"; macro += "WAIT SECONDS={{sleep}}" + "\n"; //iret contains return code for imacros script var iret = iimPlay(macro); //-101 code for pressing button "Stop" on i...