Hey, I have 2 variables
The first is
{{!var9}} and contains a Text ("(Please enter the words above)")
the seconds variable is
var ifcaptcha;
now i want to do something like that
ifcaptcha = {{!var9}};
__
if someone has an idea how to do this please reply. I tried for 3 hours now and nothing worked..
Edit://
I do it in javascript, because i need a if/else
assign a built in variable to a scription variable?
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
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
-
- Posts: 6
- Joined: Sat Sep 27, 2014 5:07 am
Re: assign a built in variable to a scription variable?
Hi Juliensohn,
{{!var9}} and contains a Text ("(Please enter the words above)") is not some javascript.
If you want to do it with iMacros (http://wiki.imacros.net/PROMPT) :
Or simplier
Then just use
to get the value in your js with iimGetExtract (http://wiki.imacros.net/iimGetExtract)
If you want help with your js script, post your javascript code. But I think it's nearly the same :
Skippyto.
{{!var9}} and contains a Text ("(Please enter the words above)") is not some javascript.
If you want to do it with iMacros (http://wiki.imacros.net/PROMPT) :
Code: Select all
SET !VAR9 "(Please enter the words above)"
PROMPT {{!VAR9}} !VAR9
Code: Select all
PROMPT "(Please enter the words above)" !VAR9
Code: Select all
ADD !EXTRACT {{!VAR9}}
If you want help with your js script, post your javascript code. But I think it's nearly the same :
Code: Select all
var ifcaptcha = prompt("(Please enter the words above)", "Captcha value");
-
- Posts: 6
- Joined: Sat Sep 27, 2014 5:07 am
Re: assign a built in variable to a scription variable?
Oh sorry, my fault!!skippyto wrote:Hi Juliensohn,
{{!var9}} and contains a Text ("(Please enter the words above)") is not some javascript.
If you want to do it with iMacros (http://wiki.imacros.net/PROMPT) :
Or simplierCode: Select all
SET !VAR9 "(Please enter the words above)" PROMPT {{!VAR9}} !VAR9
Then just useCode: Select all
PROMPT "(Please enter the words above)" !VAR9
to get the value in your js with iimGetExtract (http://wiki.imacros.net/iimGetExtract)Code: Select all
ADD !EXTRACT {{!VAR9}}
If you want help with your js script, post your javascript code. But I think it's nearly the same :
Skippyto.Code: Select all
var ifcaptcha = prompt("(Please enter the words above)", "Captcha value");
Code: Select all
macroStart1 +="TAG POS=4 TYPE=TD ATTR=TXT:* EXTRACT=TXT" + "\n";
macroStart1 +="SET !VAR9 {{!EXTRACT}}" + "\n";
So i didn't want to let the user type something in.
On the End I want to do something like:
Code: Select all
if !Var9 == "Please enter the words above"
{
Do this
}
if !Var9 != "Please enter the words above"
{
Do that
}
so I wanted to use a normal variable (var Ifcaptcha)
Hope it's easier to understand now, I can't explain good in english :p
EDIT://
This worked!
Code: Select all
macroStart +="TAG POS=1 TYPE=TEXTAREA FORM=ID:question_form ATTR=ID:profile-input CONTENT={{!var9}}" + "\n";
macroStart +="ADD {{!EXTRACT}} !VAR9" + "\n";
ifcaptcha=iimGetExtract();