Need Help variable + !now

Discussions and Tech Support related to using the iMacros Component for .NET in your applications.
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
Post Reply
deadlock2004
Posts: 9
Joined: Thu Jan 30, 2014 2:24 am

Need Help variable + !now

Post by deadlock2004 » Mon May 20, 2019 12:28 am

Hi,

I need help with adding a date suffix on my variable "passing". I am trying the code below but I am getting a wrong format error.

Appreciate some help.

Thank you in Advance.


TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.amazon.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:site-search ATTR=ID:twotabsearchtextbox CONTENT="{{passing}} {{!NOW:nnss}} test"
chivracq
Posts: 8409
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Need Help variable + !now

Post by chivracq » Mon May 20, 2019 3:20 pm

deadlock2004 wrote:
Mon May 20, 2019 12:28 am
Hi,

I need help with adding a date suffix on my variable "passing". I am trying the code below but I am getting a wrong format error.

Appreciate some help.

Thank you in Advance.

Code: Select all

TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.amazon.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:site-search ATTR=ID:twotabsearchtextbox CONTENT="{{passing}} {{!NOW:nnss}} test"
CIM (again... :roll: ) for me to read/answer...! :mrgreen: (Read my Sig...)

And I don't get what is specific to the '.NET Component' that you opened your Thread in that Sub-Forum...? Or does your Script work in pure '.iim'...?, and in which FCI...? (Well, if you declare your 'passing' Var, of course...) :?
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
Tom, Tech Support
Posts: 3490
Joined: Mon May 31, 2010 4:59 pm

Re: Need Help variable + !now

Post by Tom, Tech Support » Mon Jun 03, 2019 2:22 pm

Just playing the following simple test results in the expected value:

Code: Select all

SET passing "this is a"
PROMPT "{{passing}} {{!NOW:nnss}} test"
So the problem must be elsewhere, and if you provide some more information on a) the exact error number you are receiving, b) the version of iMacros you are using and browser, and c) what value you are passing into 'passing' when you receive the error, I can try to help you further.
Regards,

Tom, iMacros Support
Post Reply