how to select previous months date using imacro

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
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
satish_k
Posts: 15
Joined: Wed Sep 13, 2006 9:18 am

how to select previous months date using imacro

Post by satish_k » Thu Sep 21, 2006 8:37 am

Hi,
how to change date to one month back from today using imacro.
The code that I have is as follows

VERSION BUILD=5200814
SIZE X=500 Y=500
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://elf.meterpower.co.uk/login.asp
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=NAME:groupid CONTENT=<userid>
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=NAME:userid CONTENT=<pwd>
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:form1 ATTR=NAME:password CONTENT=<>
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:form1 ATTR=NAME:Enter&&VALUE:Enter
'Comment: New page loaded
WAIT SECONDS=3
URL GOTO=http://elf.meterpower.co.uk/sp_main.asp
CLICK X=100 Y=100
ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}}
TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:Form1 ATTR=NAME:demcons&&VALUE:KWH CONTENT=KWH
TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:Form1 ATTR=NAME:Consolidate&&VALUE:YES CONTENT=YES
TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:Form1 ATTR=NAME:datestart CONTENT={{!NOW:dd"/"mm"/"yyyy}}

Regards
Satish
Hannes, Tech Support

Post by Hannes, Tech Support » Thu Sep 21, 2006 2:00 pm

This question was answered in another thread: http://forum.imacros.net/viewtopic.php?t=1561


Hannes
Post Reply