Menu Close

AutoHotkey Boilerplate Hotstring, useful options and typo modifications

This boilerplate function, sometimes called abbreviation, is a function to input frequently used sentences, formulas, commands, memos, and information, and to load them as simple input when necessary. For example, if you say 'Hi', 'Hi, nice to meet you, my name is GKKmon.' And the phrase is changed.

These boilerplate utilities should be used with shorthand keyboards or shorthand keyboards, which are professional hardware such as CAS and SoundJava, or by using a free program that is not usually paid or a little complicated free program that does not have a Korean translation .

In fact, using AutoHotkey's hotstring feature, you can easily implement all of your AutoText-related features at a higher quality than a professional machine or a paid program.

First of all, users who are new to Auto Hotkey can go through the tutorial and continue the following.Simple AutoHotkey installation and basic usage. Tutorial example

    Hotstring code'::'Making AutoText and OTA Modify Auto Hotkeys with

The basic code for hotstrings using boilerplate is as follows.

::hi::Hello my name is GKKmon

If you set the default code like this'hi'And press the Enter or Space bar'Hello my name is GKKmon'.

In fact, this is just the end of the boilerplate description, but you can see that there are a lot of inconveniences when you use it. First, it is necessary to take actions such as enter and space bar to change to a boilerplate. In this state, it is more troublesome to enter wrongly or in other situations, and it is difficult to utilize functions such as correction of typos.

    Immediate change useful for typos correction'*'property

So, if you want to be promptly changed as soon as you'::'Between'*'Just put one, in this way.

:*:hi::Hello my name is GKKmon

In this way,'hi'of'i'At the moment of hitting, it is changed to a boilerplate.

By using this function and setting the boilerplate in the following manner, it is possible to correct the typos automatically. Because the boilerplate recognizes only EnglishThe first part must be English.

; 'ㅇ낳'을 '않'으로 오타수정 해주는 상용구
:*:dskg::않

; AutoText to edit the 'appel' to 'apple'
:*:appel::apple

If you save it like this'ㅇ낳'Right when it comes to typos.'않'And,'appel'When there was a typo'apple'.

    Irrespective of context'?'property

However, this is still inconvenient code in practice. This is because the boilerplate works only when it is written as a standalone without any characters in front of it.

For example,'그렇지 ㅇ낳고'If there is a typo, it will be edited immediately because there is no character before,'그렇지ㅇ낳고'When you hit it like this, it is not corrected. So if you want to change to a boilerplate unconditionally unless you have another word back and forth'?'Should be added.

:*?:dskg::않

:*?:appel::apple

Even if you know this, you can freely use any kind of boilerplate. However, there are some inconveniences because of the use of Hangul.

    Backspace control to prevent errors in English boilerplate'B0'property

The first is that this boilerplate function'hi', It recognizes the two characters and presses backspace twice to input the boilerplate. Therefore, there is no problem in English, but if you use it in Hangul, you will have to delete it.

E.g'그렇게도'You have to press the backspace bar five times in total,'rmfjgrpeh'You need 9 backspace bars to erase. Because of

:*?:rmfjgrpeh::그렇게도

, It recognizes the number of English as the default setting and presses backspace 9 times. Then,'그렇게도'Is erased only five times, so that the phenomenon of erasing the back four times occurs.

In this case, you need to adjust the number of backspaces, since you need 5 backspaces in total.

:*?B0:rmfjgrpeh::{bs 5}그렇게도

Painted blue'B0'Is a command that sets the previous text that is written immediately before the backspace to not be erased,'{bs 5}'Is a command to press the backspace bar five times. When you write the code in this way, you can get rid of the erasing phenomenon and correct input even when you use Hangul AutoText. This is a very useful feature that you must use to use non-English boilerplate as well as Hangul.

    You can use uppercase and lowercase letters,'C'property

Finally, to distinguish between case and'C'Attribute. If you add this property, you can freely implement cases such as uppercase and lowercase letters in English, and double-tongued characters in Hangul because you can distinguish uppercase and lowercase characters and recognize them only when they are exactly the same. The example code is shown below.

; 빵을 핫키로 하기 위해선 Qkd 이라고 대소문자를 구분해 핫키를 만들면 된다.
:C:Qkd::내가 좋아하는 빵은 슈크림빵

:C:Ap::Apple

Like the code above'C'If you use the property exactly'빵', The boilerplate is activated and, of course,'방'It will not respond.

These are the essential attributes of the hot-key function hot-key that you personally think. Even if you use only the functions listed here, you can freely use both the boilerplate and typos correction functions in a simpler and more quality way than the pop-up boilerplate programs on the market.

There are more properties than this, but I will explain it next time because the kind is so vast and the properties mentioned above are not so high. If you wonderOfficial Auto HotkeyHotstringsHelp.

Leave a Reply

Your email address will not be published.

Posted in AutoHotkey, All

이메일 구독 - Email Subs

최선을 다해 직접 만든 콘텐츠만 공유합니다.
We share the best content we have created.