Using "IF" Command Help!

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
vpsrock
Posts: 3
Joined: Wed Aug 01, 2012 6:40 pm

Using "IF" Command Help!

Post by vpsrock » Wed Aug 01, 2012 6:46 pm

Hey!

Actually This Is My First Script Ever! this is a script which takes Facebook account info from a text file and logs in and Does something!(like liking a page, etc).

Code: Select all

VERSION BUILD=7500718 RECORDER=FX
TAB T=1
URL GOTO=https://www.facebook.com/
SET !DATASOURCE test.txt
SET !DATASOURCE_COLUMNS 2
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.facebook.com/login.php?login_attempt=1 ATTR=ID:email CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.facebook.com/login.php?login_attempt=1 ATTR=ID:pass CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=VALUE:Log<SP>In

But i need that if account is invalid! then it should Start again So that it can check next account!

rite now if account is invalid! the script stops as it can not proceed further!
siniy
Posts: 118
Joined: Sat Nov 07, 2009 7:44 pm

Re: Using "IF" Command Help!

Post by siniy » Sat Aug 04, 2012 9:03 pm

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.
Post Reply