Code: Select all
var SUB = prompt("Type your Subject Line", "Subject Line");
var MSG = prompt("Type or Paste your Message Text Here", "Message Text");
var DEL = prompt("Choose your Delay Seconds", "Delay Seconds");
Code: Select all
SET !ERRORIGNORE YES
var SUB = prompt("Enter your Subject Line", "Type your subject line here");
var MSG = prompt("Type or Paste your Message Text Here", "Type or Paste your message here");
var DEL = prompt("Delay Seconds", "Type Here");
TAB T=1
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=2 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=3 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=4 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=5 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=6 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=7 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=8 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=9 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=10 TYPE=IMG ATTR=SRC:http://website.com/mail.gif
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:aiPrompt CONTENT={{SUB}}
TAG POS=1 TYPE=TEXTAREA ATTR=ID:aiTextbox CONTENT={{MSG}}
TAG POS=1 TYPE=IMG ATTR=SRC:http://website.com/submit.gif
WAIT SECONDS={{DEL}}
TAG POS=1 TYPE=A ATTR=TXT:NEXT
WAIT SECONDS=#DOWNLOADCOMPLETE#
I could of course simply use the built in !VAR's and have in fact done so previously, but now I'd like to be able to get the macro to stop whenever captcha is encountered, to do that, I need an if found, then ...... & prompt, else continue. If I am going to do that I need to use a "normal" scripting language and as JS is supported, I was thinking of using it for the prompt commands and variables(also, I'd need a 4th !VAR to do this with iMacros scripts).
Some input would be gratefully received, this is an ongoing project and time is of the essence. Also, this would increase the usefulness of the application, simply because it would allow normal users to utilise it to automate more complex tasks