Jump to content
Macro Express Forums

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
Link to comment
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". 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...