BadJoker Posted December 6, 2018 Report Share Posted December 6, 2018 (edited) 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 December 6, 2018 by BadJoker wrong information Quote Link to comment Share on other sites More sharing options...
Cory Posted December 6, 2018 Report Share Posted December 6, 2018 What is an activation key? Quote Link to comment Share on other sites More sharing options...
Cory Posted December 6, 2018 Report Share Posted December 6, 2018 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? Quote Link to comment Share on other sites More sharing options...
Cory Posted December 6, 2018 Report Share Posted December 6, 2018 Also you can have the DateTime command type out the date. Under the Options tab one can choose the method. Quote Link to comment Share on other sites More sharing options...
BadJoker Posted December 6, 2018 Author Report Share Posted December 6, 2018 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. Quote Link to comment Share on other sites More sharing options...
BadJoker Posted December 6, 2018 Author Report Share Posted December 6, 2018 I want to create codes to fill the boxes like this Quote Link to comment Share on other sites More sharing options...
Cory Posted December 6, 2018 Report Share Posted December 6, 2018 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". Quote Link to comment Share on other sites More sharing options...
BadJoker Posted December 7, 2018 Author Report Share Posted December 7, 2018 IT WORKED!!!!! HAHAHA thank's a lot cory. Quote Link to comment Share on other sites More sharing options...
Cory Posted December 7, 2018 Report Share Posted December 7, 2018 You're welcome. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.