I'm currently using the following code for a hotstring:
:*:d1``::
VV := Date_now(1)
Send %VV%
return
Is there anyway to make this a one liner? For example like the following:
:*:d1``:: Date_now(1)
Andrew
Auto-replacement text
Re: Auto-replacement text
Create a custom Function, like this:
Code: Select all
F1::CustomFunction("Auto")
F2::CustomFunction("I am a ")
CustomFunction(Txt)
{
Txt .= "Hotkey"
MsgBox % Txt
}
Use
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Re: Auto-replacement text
Yes that works with a hotkey, but not a hotstring like the example I posted. A
Re: Auto-replacement text
From Hotstring:
The "by the way" example above is known as an auto-replace hotstring because the typed text is automatically erased and replaced by the string specified after the second pair of colons.
By contrast, a hotstring may also be defined to perform any custom action as in the following examples.
Note that the commands must appear beneath the hotstring: