!NOW does not print time but is printed as string

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
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
whanaki
Posts: 8
Joined: Sun Jan 18, 2009 11:54 am

!NOW does not print time but is printed as string

Post by whanaki » Sun Jan 18, 2009 10:16 pm

Hi,

I want to automate the creation of an appointment in my webmail program and I am using :
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:newAppointmentForm ATTR=ID:newappointment_description CONTENT=Test<SP>Appointment<SP>!NOW:ddmmyy_hhmmss

Unfortunately the !NOW part is not translated into the current time but simply entered as string so the subject of the appointment reads "Test Appointment !NOW:ddmmyy_hhmmss".

:?: :?: :?: :?:

Any advice how I can fix this?

Thanks
Martin
dharmendra2000
Posts: 214
Joined: Fri Jul 04, 2008 1:28 pm
Location: Ahmedabad
Contact:

Re: !NOW does not print time but is printed as string

Post by dharmendra2000 » Mon Jan 19, 2009 5:24 am

Use
{{!NOW:ddmmyy_hhmmss}}
Instead of
!NOW:ddmmyy_hhmmss
whanaki
Posts: 8
Joined: Sun Jan 18, 2009 11:54 am

Re: !NOW does not print time but is printed as string

Post by whanaki » Mon Jan 19, 2009 10:03 pm

Hi,

it worked. thanks a lot.
do you have any idea where iMacro gets the time from it replaces !NOW with?

i am asking because the time that was entered was 220104 even though he had 22:58, so i am a bit confused about this. i was playing the macro in FF if that helps.

cheers
martin
dharmendra2000
Posts: 214
Joined: Fri Jul 04, 2008 1:28 pm
Location: Ahmedabad
Contact:

Re: !NOW does not print time but is printed as string

Post by dharmendra2000 » Tue Jan 20, 2009 1:50 pm

Use nn for Minutes, as mm is used for Month
Here in your case "220104" 01 is showing month, not minutes.

So finally your command would be like {{!NOW:ddmmyy_hhnnss}}
whanaki
Posts: 8
Joined: Sun Jan 18, 2009 11:54 am

Re: !NOW does not print time but is printed as string

Post by whanaki » Tue Jan 20, 2009 10:53 pm

Hi,

and thanks again. Your helpfulness is very much appreciated.

Thanks
Martin
Post Reply