Jump to content
Macro Express Forums
BadJoker

How to automatically input date to an application using macro (newbie)

Recommended Posts

So I want to create a macro that when I click the desired activation key, it will automatically fill in with the updated date. I was trying to use this codes

<DATE/TIME Format="mm/dd/yyyy" Flags="\xB3" Date="29/03/2017 10:13:13" Day_Offset="0" Month_Offset="0" Year_Offset="0" Hour_Offset="0" Minute_Offset="0" Second_Offset="0" Prompt="Enter the original date and time." Left="Center" Top="Center" Monitor="0" Variable="%dtDateTime%" IsDateVar="TRUE"/>

 however it just gives me a drop down box. What codes should I use. A little help please, a newbie here wanting to learn :) . thanks

Here is my project

<TEXT TYPE Action="0" Text="<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>P<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>P<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>F<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>F<SHIFT><ARROW DOWN><TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>P<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>P<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>C<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>C<SHIFT><ARROW DOWN><TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<SHIFT>Y<SHIFT><ARROW DOWN><TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<00>"/>  >>>>>>>>>>>>>>> this should be the month

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<00>"/> >>>>>>>>>>>>>>>> this should be the day for the next day

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<00>"/> =================== this should be the year

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="9999999999"/>

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<00>"/> >>>>>>>>>>>>>>>>>>>>>> this should be the month

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<00>"/> >>>>>>>>>>>>>>>>>>>>>>> this should be the date today

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<00>"/> >>>>>>>>>>>>>>>>>>>> this should be the year

<DELAY Flags="\x01" Time="0.05"/>

<TEXT TYPE Action="0" Text="<TAB>"/>

<TEXT TYPE Action="0" Text="<TAB>"/>

<DELAY Flags="\x01" Time="0.05"/>

 

any suggestion on how it will automatically fill the dates

for example on the box for date tomorrow

and the box for the date today.

 

This is for my project thanks

Edited by BadJoker
wrong information

Share this post


Link to post
Share on other sites

What is an activation key?

Share this post


Link to post
Share on other sites

Your code is a single command to create the DateTime variable. Don't you want to do something with it? Maybe type it out with the TextType command?

Share this post


Link to post
Share on other sites

Also you can have the DateTime command type out the date. Under the Options tab one can choose the method. 

Share this post


Link to post
Share on other sites

so the codes I made is to fill in the boxes. However on the Date part it is kinda hard to fill in with the date for tomorrow then on the next boxes for the date today.

macro.PNG

Share this post


Link to post
Share on other sites

As I said. Simply use the Date/Time command. You need separate commands for the date parts. So if I was going to fill the month for today, I would choose the option "Set it to the current Date/time on the Date/Time tab, then choose Type the date/time stamp out in the Operation tab using the format "mm". This will type "12". If I set the format to "d" it types "6". If you want "06" then use "dd". 

Share this post


Link to post
Share on other sites

You're welcome. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×