The <LET> hot code defines a variable and re-uses it in the subsequent processing of the shortcut.
Format | Action | Example |
<LET:name> | Define a variable name whose value will be asked to enter at run-time. |
<LET:sport>Playing {sport} is fun. will ask you to enter something for the variable sport. If you enter tennis, your final text will be: Playing tennis is fun. |
<LET:name=value> | Define a variable name whose value is the value. |
<LET:sport=golf>Playing {sport} is fun. will make your final text be: Playing golf is fun. Note that unlike the <ASK> code, Asutype will not ask you to confirm anything. |
<LET:name=choice-1| choice-2|choice-3...> | Define a variable name whose value can be one of the multiple choices listed. The choices are separated by |. Asutype will ask you to pick one choice when it expands the shortcut. |
<LET:sport=baseball| soccer|tennis| golf>Playing {sport} is
fun. will ask you to pick one from a list of four options: baseball, soccer, tennis and golf. If you pick baseball, your final text will be: Playing baseball is fun. |
<LET:name={ASK} question > | Define a variable name whose value will be asked to enter at run-time. The pop-up box has a title of question. |
<LET:sport={ASK} What sport to play?>Playing {sport} is
fun.
will ask you to enter something for the variable sport. If you enter tennis, your final text will be: Playing tennis is fun. The pop-up box has the title "What sport to play?" |
<LET: name = {ASK} question= choice-1|choice-2|choice-3|...> |
Ask the user to select one choice between multiple choices and assign the selection to variable named
name. The pop-up box has a title of question . |
<LET:sport={ASK} What sport to play?=tennis| golf|footsy>Playing {sport} is
fun.
will ask you to pick one from a list of three options: , tennis, golf and footsy. If you pick footsy, your final text will be: Playing footsy is fun. The pop-up box has the title "What sport to play?" |
<LET: name = {CHOOSE} title = choice-1|choice-2| choice-3|...> |
Ask the user to select one choice between multiple choices and assign the selection to variable named
name. The pop-up box has a title of title . |
<LET:sport={CHOOSE} What sport to
play?=tennis| golf|footsy>Playing {sport} is fun.
will ask you to pick one from a list of three options: , tennis, golf and footsy. If you pick footsy, your final text will be: Playing footsy is fun. The pop-up box has the title " What sport to play? " |
<LET: name = {XCHOOSE} separator: title =choice-1| choice-2|choice-3|...> |
Ask the user to select one or more choices between multiple choices and assign the selection to variable named
name. The pop-up box has a title of title . The final choices are separated by separator. |
<LET:sport={XCHOOSE} ^n and :What sport to
play?=tennis| golf|footsy>Playing {sport} is fun.
will ask you to pick one or more from a list of three options: , tennis, golf and footsy. If you pick them all, your final text will be: Playing tennis and golf and footsy is fun. The asking box has the title " What sport to play? " Note that the separator is " and " with the space before and after the "and". The ^n is just a marker to make the first space before "and" possible. For more on the separator, see the notes in the Action hot codes topic. |
<LET:name={YYYY}> | Define a variable name whose value is the current year with century. |
<LET:value={YYYY}>This year is {value}. If you expand this shortcut on April 10, 2001 then the final text will be: This year is 2001. |
<LET:name={YY}> | Define a variable name whose value is the current year without century. |
<LET:value={YY}>This year is {value}. If you expand this shortcut on April 10, 2001 then the final text will be: This year is 01. |
<LET:name={MMMM}> | Define a variable name whose value is the current month name in full form. |
<LET:value={MMMM}>This month is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: This month is April. |
<LET:name={MMM}> | Define a variable name whose value is the current month name in short form. |
<LET:value={MMM}>This month is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: This month is Apr. |
<LET:name={MM}> | Define a variable name whose value is the current month in decimal number with a leading zero (if applicable). |
<LET:value={MM}>This month is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: This month is 04. |
<LET:name={M}> | Define a variable name whose value is the current month in decimal number without a leading zero. |
<LET:value={M}>This month is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: This month is 4. |
<LET:name={DDDD}> | Define a variable name whose value is the current weekday in full form. |
<LET:value={DDDD}>Today is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: Today is Tuesday. |
<LET:name={DDD}> | Define a variable name whose value is the current weekday in short form. |
<LET:value={DDD}>Today is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: Today is Tue. |
<LET:name={DD}> | Define a variable name whose value is the current day of month as decimal number with a leading zero (if applicable). |
<LET:value={DD}>Today is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: Today is 09. |
<LET:name={D}> | Define a variable name whose value is the current day of month as decimal number without a leading zero. |
<LET:value={D}>Today is {value}. If you expand this shortcut on April 09, 2001 then the final text will be: Today is 9. |
<LET:name={HOUR12}> | Define a variable name whose value is the current hour in 12-hour format as decimal number. |
<LET:value={HOUR12}>Now is {value}. If you expand this shortcut at 13:15:16 PM then the final text will be: Now is 01. |
<LET:name={HOUR}> | Define a variable name whose value is the current hour in 24-hour format as decimal number. |
<LET:value={HOUR}>Now is {value}. If you expand this shortcut at 13:15:16 PM then the final text will be: Now is 13. |
<LET:name={MIN}> | Define a variable name whose value is the current minute as decimal number. |
<LET:value={MIN}>Now is {value}. If you expand this shortcut at 13:15:16 PM then the final text will be: Now is 15. |
<LET:name={SEC}> | Define a variable name whose value is the current second as decimal number. |
<LET:value={SEC}>Now is {value}. If you expand this shortcut at 13:15:16 PM then the final text will be: Now is 16. |
<LET:name={AMPM}> | Define a variable name whose value is the current AM/PM indicator. |
<LET:value={AMPM}>Now is {value}. If you expand this shortcut at 13:15:16 PM then the final text will be: Now is PM. |
<LET:name={TIME} date-time-format> |
Define a variable name
whose value is the
current time with the format date-time-format. For details on the format, see the Date and time hot codes topic. |
<LET:today={TIME} %a>Today is {today}. If you expand this shortcut on Wednesday, the final text will be: Today is Wed. If you expand this shortcut on Friday, the final text will be: Today is Fri. |
<LET:name={TICK}> | Define a variable name whose value is the current time expressed in millisecond from January 1, 1970. | |
<LET:name={TICK}? title?> | Popup a dialog box to let you choose a date/time and assign the value to the variable name, expressed in millisecond from January 1, 1970. |
<LET:tick={TICK} ?Choose the next visit?>
will ask you to pick a date for your next visit. |
<LET:name={TICK}YYYYMMDD:HHMMSS?> | Will assign to the variable name the time specified as YYYYMMDD:HHMMSS, expressed in millisecond from January 1, 1970. |
<LET:tick={TICK} 20200713:120000>
will assign tick the value 1626141600, which is the number of milliseconds allasped from Jan 1, 1970 to Jul 13, 2020. |
<LET:name={TICK2TIME:time-format} value> |
Will convert tick value to the normal date/time in the format date-time-format. For details on the format, see the Date and time hot codes topic. |
|
<LET:name={FOCUS}> | Define a variable name whose value is the shortcut's hot text. | |
<LET:name={LAST-LINE}> | Define a variable name whose value is the last line that you've just typed. | |
<LET:name={LAST-WORD}> | Define a variable name whose value is the last word that you've just typed. | |
<LET:name={CLIPBOARD}> | Define a variable name whose value is the current clipboard content. | |
<LET:name={CLIPBOARD} #key> | Define a variable name whose value is the current content of the clipboard #key in Asutype's multiple clipboards. | |
<LET:name={CURSOR-POSITION}> | Define a variable name whose value is the current cursor position in the x, y format, relative to the upper left corner of the screen. | |
<LET:name={CARET-POSITION}> | Define a variable name whose value is the current caret position in the x, y format, relative to the upper left corner of the screen. | |
<LET:name={LBUTTON-POSITION}> | Define a variable name whose value is the last left button clicking position in the x, y format, relative to the upper left corner of the screen. | |
<LET:name={RBUTTON-POSITION}> | Define a variable name whose value is the last right button clicking position in the x, y format, relative to the upper left corner of the screen. | |
<LET:name={USER-NAME}> | Define a variable name whose value is the current login name. | |
<LET:name={COMPUTER-NAME}> | Define a variable name whose value is the current computer name. | |
<LET:name={WINDOW-TITLE}> | Define a variable name whose value is the current window title. | |
<LET:name={APPLICATION}> | Define a variable name whose value is the current application executable file. | |
<LET:name={ENVIRONMENT}> | Define a variable name whose value is the current environment variables, separated by |. | |
<LET:name={ENVIRONMENT} environment-name> | Define a variable name whose value is the current environmental variable's value. | |
<LET:name={TEXT-FILE} full-file-path> | Define a variable name whose value is the content of the text file. |